-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(VerticalNavigation): ability to add dividers #963
feat(VerticalNavigation): ability to add dividers #963
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
I'm wondering if this is really necessary as you could just make multiple |
Agree. This is definitely a "nice-to-have" feature. I will say I think it could provide some consistency with how we structure and group items in a Dropdown. But good with me if you just want to close this π |
@connerblanton Would you mind fixing the conflicts? Also, wouldn't it be better to use the |
@benjamincanac conflicts have been resolved. I might be missing something here, but I am using the |
Thanks @connerblanton! π |
π Linked issue
#951
β Type of change
π Description
This is a non-breaking change that will allow users to divide links into sections within the
VerticalNavigation
component. There was currently a workaround that I mentioned here, but I thought this would be a good enhancement to the component.All we are doing here is allowing the
links
prop to either be what it currently is, an array ofVerticalNavigationLink
(VerticalNavigationLink[]
), or now an array of arrays ofVerticalNavigationLink
(VerticalNavigationLink[][]
).We then introduce a
linksSections
computed property to ensure we are always working withVerticalNavigationLink[][]
. In the template, we show aUDivider
between every section unless it's the last section.Resolves #951
π Checklist