Skip to content

The top navigation bar used by the layout shells: brand, links and actions, in several color variants.

atlas-navbar

Examples

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

InputTypeDefaultDescription
height number56 Height in pixels.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
ariaLabel string | undefinedundefined Accessible name of the navigation landmark. Defaults to the configured navbar.label .
variant NavbarVariant'default' Background: default , dark , primary , secondary , accent , muted , or inherit (transparent, takes the parent's colours).

Types

Navbar variant determines the background/foreground color scheme. - 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'