Components
Tabs
Switch between alternate content panes, with optional persistence.
Use Tabs and Tab when readers should choose among alternatives in the same
space — languages, platforms, or product modes. For tabbed code only,
prefer Code Group.
Basic usage#
Content for JavaScript developers.
Persist selection with group#
Tabs that share a group id restore the last selected tab from
localStorage under shiso-tabs:<group>.
A single Tab child renders as plain content with no tab chrome.
Properties#
Tabs#
| Name | Type | Description |
|---|---|---|
| group | string | Shared id for persisting the selected tab across tab sets. |
| children | ReactNode | One or more |
Tab#
| Name | Type | Description |
|---|---|---|
| title | ReactNode | Tab label. Falls back to |
| children | ReactNode | Panel content. |
Last updated on