Navigation Menu

An accessible navigation menu with dropdown panels, built on Radix UI. Exported by @eluan/core for use in headers and site navigation.

Import

Usage

Anatomy

Compose the menu from these parts:

Installation

Props

NavigationMenu (the root) accepts the following. Parts forward their underlying Radix and element props.

PropTypeDefaultDescription
orientation
"horizontal" | "vertical""horizontal"Layout direction of the menu list.
value
stringControlled value of the active menu item.
defaultValue
stringUncontrolled initial active item.
onValueChange
(value: string) => voidCalled when the active item changes.