Skip to content

Conversation

@gunhaxxor
Copy link
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
Copy link

pkg-pr-new bot commented Dec 10, 2025

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
Copy link
Member

@benjamincanac benjamincanac left a comment

Choose a reason for hiding this comment

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

Thanks! 😊

@benjamincanac
Copy link
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