Navbar
Navigationatlas-navbarExamples
Variants
The bar used by both layout shells. variant sets its color scheme.
Height and landmark name
height sets the bar height in pixels. Each navbar is a navigation landmark: give it an ariaLabel when a page has more than one, so screen-reader users can tell them apart.
API
Generated from the library source, so it always matches the code.
AtlasNavbarComponent atlas-navbar
| Input | Type | Default | Description |
|---|---|---|---|
| height | number | 56 | |
| class | string | '' | cn() ; yours win on conflicts. |
| ariaLabel | string | undefined | undefined | navbar.label . |
| variant | NavbarVariant | 'default' | default , dark , primary , secondary , accent , muted , or inherit (transparent, takes the parent's colours). |
Types
NavbarVariant
default — Translucent background with backdrop blur (standard light/dark mode aware) - dark — Uses foreground color as background (inverted appearance) - primary — Uses primary color as background - secondary — Uses secondary color as background - accent — Uses accent color as background - muted — Uses muted color as background - inherit — Inherits colors from parent element (transparent)
type NavbarVariant = 'default' | 'dark' | 'primary' | 'secondary' | 'accent' | 'muted' | 'inherit'