Skip to content

docs(dashboard-sidebar): wrong slot names - #5641

Merged
benjamincanac merged 1 commit into
nuxt:v4from
gunhaxxor:patch-2
Dec 10, 2025
Merged

docs(dashboard-sidebar): wrong slot names#5641
benjamincanac merged 1 commit into
nuxt:v4from
gunhaxxor:patch-2

Conversation

@gunhaxxor

Copy link
Copy Markdown
Contributor

Probably a copy-paste error.
To me it's still not clear though, how to use the content and or body, and what's the difference between the two? Would probably be good to clarify this a bit more in the docs as well.

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • âœĻ New feature (a non-breaking change that adds functionality)
  • ðŸ§đ Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠ïļ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Probably a copy-paste error.
To me it's still not clear though, how to use the content and or body, and what's the difference between the two? Would probably be good to clarify this a bit more in the docs as well.
@pkg-pr-new

pkg-pr-new Bot commented Dec 10, 2025

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/ui@5641

commit: 7c8587b

@benjamincanac benjamincanac changed the title correction of slot names docs(dashboard-sidebar): wrong slot names Dec 10, 2025

@benjamincanac benjamincanac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 😊

@benjamincanac

Copy link
Copy Markdown
Member

@gunhaxxor The content and overlay slots are used for the mobile menu proxied to Modal, Slideover or Drawer: https://github.com/nuxt/ui/blob/v4/src/runtime/components/DashboardSidebar.vue#L195-L198 and you can use the header, body and footer slots for the actual content of the sidebar.

I added a note about this in #5473 to split the mobile menus from Header and DashboardSidebar into their own components so it's easier to configure.

@benjamincanac
benjamincanac merged commit 32adcae into nuxt:v4 Dec 10, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants