Installation
Basic
Teamspaces content goes here.
With Icons
Teamspaces content goes here.
Active Label
Teamspaces content goes here.
API Reference — TabsSubtle
| Prop | Type | Default | Description |
|---|---|---|---|
| selectedIndex | number | — | Index of the currently selected tab. |
| onSelect | (index: number) => void | — | Called when a tab is selected. |
| idPrefix | string | — | Prefix for ARIA IDs linking tabs to panels. |
| activeLabel | boolean | false | When true, only the selected tab shows its text label. Requires icons on tabs. |
| children | ReactNode | — | TabsSubtleItem children. |
API Reference — TabsSubtleItem
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | IconComponent | — | Icon displayed in the tab. |
| label | string | — | Text label for the tab. |
| index | number | — | Position index within the tab list. |
API Reference — TabsSubtlePanel
| Prop | Type | Default | Description |
|---|---|---|---|
| index | number | — | Index of this panel. |
| selectedIndex | number | — | Currently selected tab index. |
| idPrefix | string | — | Must match the TabsSubtle idPrefix. |
| children | ReactNode | — | Panel content, only rendered when selected. |