API Reference
Tabs
Alternative views of the same concept — one command per package manager, one snippet per language.
For alternative views of the same concept — an install command per package manager, a snippet
per language, a config per OS. Keep the panels parallel so switching tabs swaps one variable. The
tab labels come from each <Tab>'s title.
When to use it
Reach for tabs when the reader needs exactly one of several parallel options and the rest are noise to them. If every item is relevant in sequence, use Steps; if the extra options are optional depth, use Accordions.
Props
| Component | Prop | Type | Description |
|---|---|---|---|
<Tab> | title | string | The tab label (also usable as value) |
<Tab> | children | ReactNode | The panel content |
Live example
npm i superlorepnpm add superlorebun add superlore