nuxt-ui-pro / saas

A SaaS template made with Nuxt UI Pro.
https://saas-template.nuxt.dev
267 stars 58 forks source link

In a UBlogPost, is it possible to add author's name next to their image? #29

Closed robmontesinos closed 5 months ago

robmontesinos commented 5 months ago

I'm assuming that one way to do this is to copy BlogPost into components folder and rename it to UBlogPost and add a slot for author's name.

I'd appreciate it if someone could share a better way to make this modification - the blog author's name is pretty important for this part of this project as well as other projects.

Thank you in advance.

benjamincanac commented 5 months ago

You can use the #authors slot to display what you want instead of the default UAvatarGroup.

robmontesinos commented 5 months ago

Thank you @benjamincanac - I will try it out and post my reaction to your quick response - have a great weekend

robmontesinos commented 5 months ago

You were correct @benjamincanac and I appreciate it. With the slight modification of adding the <template #authors> slot as you suggested, it opened a whole bunch of styling possibilities, including additions to the UI object. Thank you again and I'm closing this note out.