#headlessui/react, responsive navbar

6 messages · Page 1 of 1 (latest)

gilded epochBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

lean cape
#

What is the component library you are using?

If you think the class names are too long, you can use libraries like cva or tailwind variants to make your code cleaner

cva

Class Variance Authority

orchid summit
#

but there is no docs about to make a responsive dropdown menu

lean cape
#

You want to hide all the menu items?
Try controlling the open state directly with static: https://headlessui.com/react/menu#showing-hiding-the-menu and implement a wrapper over it. Because headless ui handles the open state, your css might not worked as expected

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.

orchid summit