App chrome

Tab bar

Bottom navigation for phones: icon over label, the current one in the accent.

Examples

Tab bar

Anatomy

nav.tabbarFixed to the bottom edge, full width, with a hairline above. Items share the width equally; the bottom padding clears the home indicator.
> aOne destination: icon stacked over a short label.
a > iThe icon, at the large text size.

API

AttributeValuesDescription
aria-currentpageOn a link: accent colour and an edge along its top. Any value works.

Accessibility

  • These are links in a <nav>, not ARIA tabs: don't add role="tab". Mark the current one with aria-current="page".
  • The current item shows an edge as well as the accent, so it doesn't rely on colour.
  • Keep the visible label; the icon is decorative next to it.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose