Components / Navigation & overlaysv1.0.0 · updated 2026-09-25
Free · MIT
The thumb measures the active tab and slides to it on the punch curve. Arrow keys move between tabs; the pill variant crossfades its panel.
tabssegmentedkeyboard
Live components, real props, nothing staged.
Customize
Variant
Accent
Install
$ npm install motion- Copy
Tabs.tsxfrom the Code tab intocomponents/brazen/. - Make sure the Brazen tokens are loaded (
tokens.css); colours and timing come from them. - Import it and pass the props below.
Props 3
| Prop | Type | Default | Description |
|---|---|---|---|
items | { id; label; content }[] | — | Tabs and their panels. |
variant | "pill" | "segmented" | "pill" | Visual style. |
defaultId | string | — | Initially active tab. |
Features
- Pill and segmented variants
- Arrow-key navigation
- Animated panels
Dependencies
motion@^14.0.0react@>=19peer
Works with
- React 19
- Next.js 15+
- TypeScript
Reduced motion
Thumb and panels switch instantly.