nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.56k stars 419 forks source link

Add children to VerticalNavigation #1638

Open jeydi243 opened 2 months ago

jeydi243 commented 2 months ago

Description

Hi, I really like the way VerticalNavigation is. If it could be possible to have a children component for every link in case of a link have children route. this dribbble explain it well shot image So to add the possibility to have a children key that will also have VerticalNavigation for nested routes. I didn't see like issue. Thank you.

Additional context

Will be also better to have the possibility to set the icon indicator either left or right. The link with children could be rendered as an accordion but with content as a VerticalNavigation component.

benjamincanac commented 2 months ago

We have the DashboardSidebarLinks component that does exactly that: https://ui.nuxt.com/pro/components/dashboard-sidebar-links but it's part of @nuxt/ui-pro.