Components
Navbar
Top navigation bar with logo, navigation links, and action slot. Responsive with mobile hamburger menu.
Import
Usage
Navbar Props
| Prop | Type | Default | Description |
|---|---|---|---|
sticky | boolean | false | Position fixed at top of page |
bordered | boolean | true | Show bottom border |
children | React.ReactNode | — | NavbarBrand, NavbarNav, NavbarActions |
className | string | — | Additional CSS classes |
NavbarBrand Props
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | '/' | Brand link URL |
children | React.ReactNode | — | Logo or brand text |
NavbarItem Props
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | — | Link URL |
active | boolean | false | Mark as current page |
disabled | boolean | false | Prevent interaction |
children | React.ReactNode | — | Link label |
Sticky navbar
With avatar and dropdown
Mobile behaviour
The Navbar includes a built-in hamburger menu button on small screens. The navigation collapses into a slide-down panel below 768px.
Accessibility
<nav>element witharia-label="Main navigation"- Active item has
aria-current="page" - Mobile toggle has
aria-expandedandaria-controls - Keyboard navigable with Tab and Enter