Skip to main content
Version: Next

NavigationMenu API

import { NavigationMenu } from '@editora/ui-react';

Props​

PropTypeDescription
activation'automatic' | 'manual'
childrenReact.ReactNode
collapsibleboolean
elevation'none' | 'low' | 'high'
headlessboolean
loopboolean
onChange(detail: NavigationMenuChangeDetail) => void
onSelect(selected: number) => void
orientation'horizontal' | 'vertical'
radiusnumber | string
selectednumber
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).

PropTypeDescription
activation'automatic' | 'manual'
childrenReact.ReactNode
collapsibleboolean
elevation'none' | 'low' | 'high'
headlessboolean
loopboolean
onChange(detail: NavigationMenuChangeDetail) => void
onSelect(selected: number) => void
orientation'horizontal' | 'vertical'
radiusnumber | string
selectednumber
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).

PropTypeDescription
childrenReact.ReactNode
PropTypeDescription
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

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