byronwade/ui
Application UI

Overlays · Application UI

Navigation Menu

Accessible site navigation with animated dropdown panels.

@byronwade/foundation@byronwade/utils@base-ui/reactclass-variance-authority@phosphor-icons/react

Feature showcase

Installation

Features

  • 4 examples

    Default, Simple Links, With Descriptions, With Icons.

API

Props

PropTypeDefaultDescription
align"start" | "center" | "end""start"Alignment of the dropdown panel under its trigger.
valuestring | null-Controlled value of the item whose panel is open.
defaultValuestring | nullnullUncontrolled initial open item.
onValueChange(value: string | null) => void-Fires when the open item changes.
delaynumber50Delay in ms before opening on hover.
orientation"horizontal" | "vertical""horizontal"Layout axis of the menu.

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.
@base-ui/reactnpmInstalled from npm.
class-variance-authoritynpmInstalled from npm.
@phosphor-icons/reactnpmInstalled from npm.

Source and related

FilePath
Componentregistry/ui/navigation-menu.tsx
Default examplecontent/examples/navigation-menu/default.tsx
Simple Links examplecontent/examples/navigation-menu/simple-links.tsx
With Descriptions examplecontent/examples/navigation-menu/with-descriptions.tsx
With Icons examplecontent/examples/navigation-menu/with-icons.tsx