Tabs
Switch between views of the same thing.
Live preview · click to try it
Variants
4 named variants. Layer names match the names below.
UnderlineTabs / Underline
PillTabs / Pill
TrayTabs / Tray
VerticalTabs / Vertical
States
Tabs / Default
Tabs / Hover
Tabs / Active
Tabs / Focus
Tabs / Disabled
Usage
Do
- Preview / Code, Monthly / Yearly, Light / Dark.
Don't
- Moving between pages.
Properties
| Property | Type or options | Default |
|---|---|---|
| Variant | Underline · Pill · Tray · Vertical | Underline |
| Items | Array of String | Line, Tray, Numbered |
| Active | String | Line |
Styles it uses
Ink/PrimaryInk/SecondaryAccent/AcidLine/StrongSurface/Tile
Text: Label · Body
Accessibility
- Keyboard reachable with a visible 3px State/Focus ring.
- Interactive parts use real buttons and links with accessible names.