Skip to content
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

NavigationMenu with non-collapsible parents #2993

Closed
MickL opened this issue Dec 29, 2024 · 5 comments
Closed

NavigationMenu with non-collapsible parents #2993

MickL opened this issue Dec 29, 2024 · 5 comments
Labels
enhancement New feature or request v3 #1289

Comments

@MickL
Copy link
Contributor

MickL commented Dec 29, 2024

Description

Using NavigationMenu parent items are currently always collapsible. The following is not possible:

Image

It would be an amazing to have a new prop collapsible: boolean. If set to true the parent is not clickable and the children are always visible.

Additional context

No response

@MickL MickL added enhancement New feature or request triage v3 #1289 labels Dec 29, 2024
@DeekHalden
Copy link

Hey @MickL .
open: true on parent does the trick. Like that

Image

@MickL
Copy link
Contributor Author

MickL commented Jan 16, 2025

Thanks for the info! This makes the parent open by default but it still displays an arrow even tho it is not collapsible. At least the arrow should be hidden, but it would be nice if it also transforms visually more into a label as in my screenshot.

@benjamincanac
Copy link
Member

I added a type: 'label' on items like on DropdownMenu and ContextMenu to handle this that works only on vertical orientation, let me know what you think!

@benjamincanac
Copy link
Member

You can see an example here: https://ui3.nuxt.dev/components/navigation-menu#orientation

@MickL
Copy link
Contributor Author

MickL commented Jan 16, 2025

Amazing !!

@benjamincanac benjamincanac removed the triage label Jan 25, 2025 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 #1289
Projects
None yet
Development

No branches or pull requests

3 participants