Navbar
Sticky top navigation bar with a brand area on the left, content slots on the right, and an optional decorative ticker line.
Basic Navbar
Preview
With Ticker and Actions
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| brand | ReactNode | - | Content rendered in the left brand area. Typically a logo or text. |
| ticker | string | - | When provided, renders a subtle gradient line at the bottom of the navbar. |
| children | ReactNode | - | Content rendered in the right section, typically navigation links or action buttons. |
| className | string | - | Additional CSS classes to apply to the nav element. |
Accessibility
- Renders as a semantic
<nav>element for assistive technology. - Uses
stickypositioning so it remains visible when scrolling. - Navigation links inside the navbar should use proper anchor tags or accessible link components.
- Consider adding an
aria-labelsuch as "Main navigation" for screen readers when multiple navs are present.