Component libraryNavigation menu
Navigation menu
ProSite navigation with grouped links and responsive dropdowns.
npx shadcn@latest add @tidal-pro/navigation-menuInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/navigation-menu.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
label names the native nav landmark. items is an ordered list of direct native links and disclosure groups with unique IDs, ReactNode labels and descriptions, native anchor or trigger attributes, individual refs, disabled state, active destination state, nested destinations and optional consumer-owned preview content. openId/onOpenChange support controlled disclosure; defaultOpenId supports uncontrolled disclosure. Accepted plain primary destinations close the open disclosure while modified clicks, downloads and non-self targets retain native behavior. Caller prevention runs before owned trigger, key and link behavior. Escape closes and returns focus to the group trigger; ArrowDown opens a group or focuses its first enabled destination, and ArrowUp/Down/Home/End traverse enabled destinations without replacing ordinary Tab order. dir controls logical RTL behavior. disabled resolves every trigger and destination to native or ARIA-disabled behavior. emptyMessage accepts ReactNode, including numeric zero. The forwarded ref and remaining native attributes target the nav root. Consumers own destinations, previews, disclosure decisions, active state and navigation outcomes.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.