NavigationMenu API
import { NavigationMenu } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
activation | 'automatic' | 'manual' | |
children | React.ReactNode | |
collapsible | boolean | |
elevation | 'none' | 'low' | 'high' | |
headless | boolean | |
loop | boolean | |
onChange | (detail: NavigationMenuChangeDetail) => void | |
onSelect | (selected: number) => void | |
orientation | 'horizontal' | 'vertical' | |
radius | number | string | |
selected | number | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
tone | 'default' | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | |
variant | 'surface' | 'soft' | 'solid' | 'outline' | 'flat' | 'contrast' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
NavigationMenu.Root props
| Prop | Type | Description |
|---|---|---|
activation | 'automatic' | 'manual' | |
children | React.ReactNode | |
collapsible | boolean | |
elevation | 'none' | 'low' | 'high' | |
headless | boolean | |
loop | boolean | |
onChange | (detail: NavigationMenuChangeDetail) => void | |
onSelect | (selected: number) => void | |
orientation | 'horizontal' | 'vertical' | |
radius | number | string | |
selected | number | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
tone | 'default' | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | |
variant | 'surface' | 'soft' | 'solid' | 'outline' | 'flat' | 'contrast' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
NavigationMenu.List props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode |
NavigationMenu.Item props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode |
NavigationMenu.Trigger props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
NavigationMenu.Link props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
NavigationMenu.Content props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-navigation-menu>
NavigationMenu renders the ui-navigation-menu custom element from @editora/ui-core, which can also be used without React.
Attributes: activation, collapsible, elevation, headless, loop, orientation, radius, selected, size, tone, variant
Events: change, select