Navigation
Navbar
The navigation bar at the top of the page. On narrow screens it folds into a toggle, and screen readers read it as navigation.
ReactVueWeb Components
View in Storybook Playground
Examples
<Navbar brand="Lily">
<a href="/docs">Docs</a>
<a href="/about">About</a>
</Navbar> Props
| Name | Type | Default | Description |
|---|---|---|---|
brand | ReactNode | — | Brand/logo content (links to home). |
brandHref | string | # | href for the brand. @default '#' |
children required | ReactNode | — | Nav content shown in the collapsible area. |
label | string | Main | Accessible label for the nav landmark. @default 'Main' |
toggleLabel | string | Toggle navigation | Label for the mobile toggle button. @default 'Toggle navigation' |
className | string | — |
Accessibility
- Body/background contrast is ≥ 7:1 (AAA) in both light and dark.
- Every interaction works with the keyboard alone.
- The focus ring is always visible.
- Respects prefers-reduced-motion and stops excessive motion.
Every component is designed to meet WCAG 2.1 AAA.