Navigation Menu
A top-level navigation component with accessible dropdown sub-menus.
Generated from the package's public source.
API
Contentcomponent
Content(props: NavigationMenuContentProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Itemcomponent
Item(props: NavigationMenuItemProps): Element
Props
class?stringstyle?string | CSSPropertiesvaluestring— Unique value for this navigation item.
children: Element
Linkcomponent
Link(props: NavigationMenuLinkProps): Element
Props
active?boolean— Whether this link represents the current page.class?stringhref?string— Link href.onClick?(e: MouseEvent) => void— Called on click.style?string | CSSProperties
children: Element
Listcomponent
List(props: NavigationMenuListProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
NavigationMenuContentPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
NavigationMenuItemPropsinterface
Props
class?stringstyle?string | CSSPropertiesvaluestring— Unique value for this navigation item.
children: Element
NavigationMenuLinkPropsinterface
Props
active?boolean— Whether this link represents the current page.class?stringhref?string— Link href.onClick?(e: MouseEvent) => void— Called on click.style?string | CSSProperties
children: Element
NavigationMenuListPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
NavigationMenuRootPropsinterface
Props
aria-label?string— Accessible label for the nav element.class?stringdefaultValue?string— Default active item value (uncontrolled).delayDuration?number— Delay for pointer intent (ms). Default 200.onValueChange?(value: string) => void— Called when active value changes.orientation?"horizontal" | "vertical"— Orientation of the navigation bar. Default "horizontal".positioning?PositioningPort— Optional positioning adapter for dropdown panels.style?string | CSSPropertiesvalue?Accessor<string | undefined>— Controlled active value.
children: Element
NavigationMenuTriggerPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
PositioningPortinterface
Positioning adapter port injected by the consumer.
Props
update(reference: HTMLElement, floating: HTMLElement) => void | () => void— Compute and apply position styles to the content element.
Rootcomponent
Root(props: NavigationMenuRootProps): Element
Props
aria-label?string— Accessible label for the nav element.class?stringdefaultValue?string— Default active item value (uncontrolled).delayDuration?number— Delay for pointer intent (ms). Default 200.onValueChange?(value: string) => void— Called when active value changes.orientation?"horizontal" | "vertical"— Orientation of the navigation bar. Default "horizontal".positioning?PositioningPort— Optional positioning adapter for dropdown panels.style?string | CSSPropertiesvalue?Accessor<string | undefined>— Controlled active value.
children: Element
Triggercomponent
Trigger(props: NavigationMenuTriggerProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element