Mobile-first tab bar
A bottom tab bar with safe-area padding, promoted to a horizontal top bar at md.
Live preview
Source
This exact file renders the preview above.
Demo source — adapt to your project. Foundry is not published as a package.
Usage
For app-like products where the primary destinations should be reachable with a thumb. One markup, reordered with `order` at `md`, rather than two components kept in sync by hand.
- `env(safe-area-inset-bottom)` padding keeps the bar clear of the home indicator.
- The active tab is filled *and* coloured *and* marked with `aria-current` — three signals.
- Five tabs is the ceiling; beyond that the labels stop fitting on a 390px screen.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Bottom bar on mobile
- Top bar at md
- Filled active icon
Accessibility
- Targets
- Every tab is at least 56px tall on mobile.
- Current page
- `aria-current="page"` moves with the selection.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All navigationDashboard shell
Top bar plus persistent sidebar, with the same destinations rendered into a drawer below lg.
intermediateFeatured4 variantsTabs
ARIA tabs with manual activation and three appearances.
intermediate5 variantsProduct landing starter
A single-product site built around one capability, with an integration surface, a resource index and an interactive preview.
starter4 variants