Tab bar

A floating glass capsule of up to three tabs, with the one action apart as its own dot. Icons only; the active tab shows its label.

Specs

Every value is a token from Foundations. The names match Figma and the Flutter file.

Bar
64 tall capsule, 20 from the screen sides, glass; it takes the width the dot leaves
Tabs
three at most; 52 targets (size/icon-button), 26pt icons at 60% when inactive
Action dot
64 circle, glass, 8 (gap/inline) from the capsule; a 26pt plus; dips to 92% under a press
Active
bg/highlight pill with icon + Moonshot/Label/Control
Switch
the pill travels and the tabs between make room on one spring (bounce .14, 0.45s); the icon lands with a small bounce, the label follows 60ms later
Press
tabs dip to 94%

Limits

Defined in the component and enforced by the linter: more than this and pnpm lint:ds fails.

3 tabs at most
Three tabs at most. The action (the plus) is not a tab: it is the separate dot.
1 per surface
One tab bar per screen.

Usage

Do

  • Keep three tabs at most.
  • Put the one action (create, send) in the dot, apart from the places.
  • Show it on Home, Collect and Holdings.

Don't

  • Don't put an action among the tabs: a plus is not a place.
  • Don't add badges with numbers to every tab.
  • Don't show it on a screen you step into that has its own bottom action. The coin page has Sell and Buy there, and Back leads out.

Accessibility

  • Each tab has a label even when only the icon shows; aria-current on the active one.
  • The dot is a button named by what it does ("Create"), outside the tab navigation.
  • Focus: a 2px focus/ring 2px outside the shape, for keyboard and switch control only. Targets are 44pt or more.