Navigation

Navbar

A full-bleed toolbar: material with one hairline below. Can shrink as the page scrolls.

Examples

Anatomy

header.navbarSticky to the top, frosted, full bleed. Its content lines up with the page container.
> strong, > navBrand and link groups in one row. Every <a> inside is a quiet, small link.
> .endOptional. The .end utility pushes trailing actions to the far side.

API

AttributeValuesDescription
data-shrinkbooleanTightens the padding and adds a shadow over the first ~11rem of page scroll. Scroll-driven, no JS; ignored where animation-timeline is unsupported.
aria-currentpageOn a link: full text colour and an accent underline.

Accessibility

  • Wrap the links in a <nav> with an aria-label when the page has more than one navigation landmark.
  • Mark the current link with aria-current="page"; the underline alone is not announced.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose