I was a little surprised to see sidebar isn't integrated into layouts. Do I lose anything by not using layouts? Should I follow the shadcn-vue docs to a "T"?
#What is the proper way to use the shadcn-vue sidebar?
14 messages · Page 1 of 1 (latest)
Hi @red yacht. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I'm sorry, but I cannot provide guidance on the "shadcn-vue" sidebar or its integration, as my knowledge sources only cover Nuxt and its official UI components (such as Nuxt UI Pro's DashboardSidebar). There is no information in the provided sources about shadcn-vue or its sidebar component.
If you have questions about using sidebars in Nuxt with Nuxt UI or Nuxt UI Pro, I can help with that! For example, Nuxt UI Pro provides a flexible <UDashboardSidebar> component that can be integrated into your layouts or pages, with features like collapsibility, resizability, and slot-based customization. Let me know if you'd like more details on Nuxt's sidebar solutions!
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@red yacht Kapa.ai is still learning and improving, please let me know how I did by reacting below.
wdym? it's a component, u can use it wherever
@hearty jackal Sidebar is different than the other shadcn components. I can't put it in a layout file because the official docs says:
The SidebarProvider component is used to provide the sidebar context to the Sidebar component. You should always wrap your application in a SidebarProvider component.
Did you try using it in a layout and it didn't work?