Tabs
Switch between views of the same thing without leaving the page. Arrow keys move between tabs; Tab moves into the panel.
bunx --bun shadcn@4.17.0 add @waimakers/tabs- npm dependencies
- @base-ui/react@1.9.0class-variance-authority@0.7.1
From the registry
Tabs uses Base UI, not Radix. The default pill and line variants use brand roles; the active pill carries the control border rather than a shadow. Compose TabsTrigger with a kit Button to preserve button styling. Tabs provides roving focus, manual or automatic activation, wrapping, orientation-aware arrow keys and tab-panel associations.
Examples
Pill
The default pill: the active tab lifts onto the ground with a control border.
Line
The line variant underlines the active tab in the text colour. Use it at the top of a page.
Vertical
Vertical tabs suit settings with many sections; arrow up and down to move.
Disabled
A disabled tab is skipped by the arrow keys and cannot be chosen.
Focus
The focus ring is the shared text-colour outline.