Skip to main content
  1. Docs
  2. Components
  3. Navigation

Tabs

Views of the same thing, one at a time. One Tab stop; the arrow keys move between them.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div role="tablist">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

0.4.0

  • filledWhenSelected defaults to true on Tab and TabNavLink: a selected tab's icon shows its filled drawing. filledWhenSelected={false} keeps the outline.

02

0.3.0

  • icon takes an element as well as a component (icon={<PlusIcon />}), so a Server Component can pass one: its type is IconSource.

03

0.2.0

  • The selected tab carries the Ember bar from the first paint, before React runs.
  • TabNav and TabNavLink: sub-pages as links, drawn as tabs.

04

0.1.0

  • TabsList variant="contained": a segmented strip.
  • Tab badge: a count, formatted for the locale.
  • A 12px count sits on the label's baseline.

05

0.0.2

  • Tabs, TabsList, Tab and TabsPanel: the 3px Ember bar slides under the selected tab; a selected tab has weight 600 and can fill its icon; 12px padding at compact density, 16px otherwise; activateOnFocus on by default; vertical tabs carry the line and the bar on the start edge.

Every change to @qeetrix/react

Next — NavigationAccordion