A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.
84
Build a reusable navigation menu component that supports both horizontal and vertical layouts with proper keyboard navigation.
Create a NavigationMenu component that:
orientation prop that can be either "horizontal" or "vertical"The implementation should pass these test cases:
@generates
interface NavigationItem {
label: string;
onClick: () => void;
}
interface NavigationMenuProps {
orientation: 'horizontal' | 'vertical';
items: NavigationItem[];
}
export function NavigationMenu(props: NavigationMenuProps): JSX.Element;Provides accessible UI components with built-in keyboard navigation and orientation support.
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