Skip to content

Tabs

Switch between views. Underline, pill or segmented.

TabsLive · light and dark follow the theme switch
import { Tabs } from '@stanvision/atomus-react';
<Tabs
aria-label="Project sections"
variant="underline"
items={[{ value: 'overview', label: 'Overview' }, { value: 'activity', label: 'Activity', count: 12 }]}
/>

Switch between views of the same object. Arrow, Home and End keys move between tabs.

  • items — [{ value, label, count?, disabled? }], two to six; aria-label.
  • variant — underline (page sections) · pill (sub-navigation) · segmented (filters, chart ranges).
  • value + onChange (controlled) or defaultValue.
  • Don’t use tabs for sequential steps — use Progress steps.

Properties, variants and anatomy for the Figma component are on the Figma reference page. Prop names in React match the Figma property names.