Nav

The Nav component provides a reusable pattern for nav in the interface.

Vertical navigation

Vertical navigation (with border)

Vertical navigation (with border and indented)

Horizontal navigation

Horizontal navigation (with dropdown)

Horizontal navigation (extended dropdown)

Horizontal navigation with the extended mega-menu dropdown enabled via isExtendedDropdown, presenting child items in a full-width panel.

Navigation with tile-style items

Horizontal navigation where each item uses the tiles style, rendering links as card-like tiles with an icon and label.

Navigation with button-style items

Navigation mixing button-style items with default links, demonstrating how individual items can be rendered as filled or outlined buttons.

Vertical navigation with active and ancestor state

Vertical navigation with a current-page item (active) and its expanded parent (ancestor), showing how the component highlights the active trail.

API

Parameter Default Type Description
[] array -
vertical string -
false boolean -
false boolean -
true boolean -
filled string -
primary string -
Expand string -
string -
false boolean -
expand_more string -
false boolean -
null ?integer -

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.
var(--border-radius) range - Border Radius
var(--color--surface) color - Surface
var(--color--primary) color - Primary
var(--shadow-color) rgba - Shadow Color
var(--shadow-amount) range - Multiplier for elevation shadows. 0 = none, 1 = default.
var(--color--primary-contrast) color - Primary Contrast
var(--color--surface-border) color - Manual companion token for borders on surface elements.
var(--color--surface-contrast) color - Used for text and icons on surface backgrounds with less contrast.
var(--font-size-300) range - Two steps above base in the type scale. Equivalent to h5.

Similar components