A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.
84
Build a navigation menu component system that renders menu items as different HTML elements or custom components based on their destination type.
Create a navigation menu system with the following functionality:
The menu should support three types of navigation items:
href attributes for in-app navigationhref and target="_blank" for external sites@generates
export interface MenuItem {
label: string;
type: 'internal' | 'external' | 'action';
href?: string;
onClick?: () => void;
}
export interface NavigationMenuProps {
items: MenuItem[];
buttonLabel: string;
}
export function NavigationMenu(props: NavigationMenuProps): JSX.Element;Provides unstyled, accessible UI components with polymorphic rendering 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