Elements

Reference

Navigation Menu

NavigationMenu, dressed in the paper-and-ink system: a menubar of ghost triggers with one sliding stroke of primary ink, opening the shared popup vessel. The parts — Root, List, Item, Trigger, Link, Content, ViewportPositioner, Viewport, Indicator, ItemIndicator, Arrow.

Root · ViewportPositioner · Viewport · Trigger · Content · List · Item · Link · Indicator · ItemIndicator · Arrow

#Arrow

A styled part — no props of its own; it takes the anatomy's shared styling.

#Content

A styled part — no props of its own; it takes the anatomy's shared styling.

#Indicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemIndicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#Item

PropTypeDefaultDescription
disabledboolean | undefinedWhether the item is disabled
valuestringThe value of the item

A styled part — no props of its own; it takes the anatomy's shared styling.

#List

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
closeDelaynumber300The delay before the menu closes
defaultValuestringThe default value of the navigation menu. Use when you don't want to control the value of the menu.
disableClickTriggerbooleanWhether to disable the click trigger
disableHoverTriggerbooleanWhether to disable the hover trigger
disablePointerLeaveClosebooleanWhether to disable the pointer leave close
idstringThe unique identifier of the machine.
idsPartial<{ root: string; list: string; item: string; trigger: (value: string) => string; content: (value: string) => string; viewport: string; }>The ids of the elements in the machine.
openDelaynumber200The delay before the menu opens
orientation'horizontal' | 'vertical'"horizontal"The orientation of the navigation menu
translationsnavigationMenu.IntlTranslationsSpecifies the localized strings that identifies the accessibility elements and their states
valuestringThe controlled value of the navigation menu
EventPayload
valueChangedetails: ValueChangeDetails
update:valuevalue: string

#Trigger

A styled part — no props of its own; it takes the anatomy's shared styling.

#ViewportPositioner

PropTypeDefaultDescription
align"start" | "center" | "end"Placement of the viewport for css variables (--viewport-x, --viewport-y). @defaultValue 'center'

#Viewport

A styled part — no props of its own; it takes the anatomy's shared styling.