ecklf / tailwindcss-radix

Utilities and variants for styling Radix state
https://tailwindcss-radix.vercel.app
MIT License
2.11k stars 67 forks source link

[NavigationMenu] Expose position of active <NavigationMenu.Item /> #18

Closed Adrastus closed 2 years ago

Adrastus commented 2 years ago

Hello. Can we add this feature in the navigation menu. Here are its descriptions https://github.com/radix-ui/primitives/issues/1462 and the solution.

ecklf commented 2 years ago

From what I see this is not exposed as a data attribute yet. Or were you looking to extend the examples with that workaround?

Adrastus commented 2 years ago

I meant to add to examples. I think it's a useful addition and fixes the problem with the large menu size.

ecklf commented 2 years ago

Happy if you want to make a PR for it, but I am personally only interested in keeping examples for the base components rather than advanced use-cases as of now.