A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.
84
Build a horizontal navigation menu bar component with multiple dropdown menus that coordinate with each other to provide a better user experience.
Create a React component that displays a navigation bar with multiple menu items. Each menu item should open a dropdown panel when clicked. The key requirement is that when one dropdown is open and the user clicks on another menu item, the currently open dropdown should automatically close and the new one should open.
The navigation bar should include at least three menu items:
Each dropdown should be clearly visible when open and hidden when closed. The dropdowns should position themselves below their respective menu buttons.
@generates
export default function NavigationMenu(): JSX.Element;Provides accessible, unstyled UI component primitives for React applications.
Install with Tessl CLI
npx tessl i tessl/npm-headlessui--reactdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10