Navigation Menu
A top-level navigation component with accessible dropdown sub-menus.
Generado a partir del código fuente público del paquete.
API
Contentcomponente
Content(props: NavigationMenuContentProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
Itemcomponente
Item(props: NavigationMenuItemProps): Element
Propiedades
class?stringstyle?string | CSSPropertiesvaluestring— Unique value for this navigation item.
hijos: Element
Linkcomponente
Link(props: NavigationMenuLinkProps): Element
Propiedades
active?boolean— Whether this link represents the current page.class?stringhref?string— Link href.onClick?(e: MouseEvent) => void— Called on click.style?string | CSSProperties
hijos: Element
Listcomponente
List(props: NavigationMenuListProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
NavigationMenuContentPropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
NavigationMenuItemPropsinterfaz
Propiedades
class?stringstyle?string | CSSPropertiesvaluestring— Unique value for this navigation item.
hijos: Element
NavigationMenuLinkPropsinterfaz
Propiedades
active?boolean— Whether this link represents the current page.class?stringhref?string— Link href.onClick?(e: MouseEvent) => void— Called on click.style?string | CSSProperties
hijos: Element
NavigationMenuListPropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
NavigationMenuRootPropsinterfaz
Propiedades
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.
hijos: Element
NavigationMenuTriggerPropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
PositioningPortinterfaz
Positioning adapter port injected by the consumer.
Propiedades
update(reference: HTMLElement, floating: HTMLElement) => void | () => void— Compute and apply position styles to the content element.
Rootcomponente
Root(props: NavigationMenuRootProps): Element
Propiedades
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.
hijos: Element
Triggercomponente
Trigger(props: NavigationMenuTriggerProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element