Replies: 3 comments 1 reply
-
Did you installed headlessUI since it's a dependency for those examples as you can see in this line of code: Also there's plenty of examples in headlessUI Demos page with their respective code for react, you can try them and play around with them. Also if you need more guidance here's a Youtube Video Tutorial from Tailwind CSS Team that covers menus with React, Tailwind CSS and HeadlessUI |
Beta Was this translation helpful? Give feedback.
-
Yes, I did that. That's how I'm using the I realized I didn't make it clear in the original post, but I'm saying that the example on the tailwind website does not work because of this --> https://tailwindui.com/components/application-ui/elements/dropdowns. |
Beta Was this translation helpful? Give feedback.
-
For ReactJS, I always use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
After setting up tailwind to work with react (as instructed in the create-react-app setup), I ran into an issue where the Dropdown doesn't work with active as long as the relative positioning is set in
<Menu as="div" className="relative inline-block text-left">
. However, disabling off relative messes up the page.Am I missing a setting? The SO answers to similar questions suggest there may be something to do in the tailwind config.
Beta Was this translation helpful? Give feedback.
All reactions