API and Development
TabMenu wraps Tabs, TabsList, and TabsTrigger for selection that updates local state only—filters, view switchers, and panels without routing. Use TabMenuItem children; each needs a stable value. Optional counter, leadIcon, and iconTitle match TabsTrigger capabilities.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | The default value when uncontrolled |
|
| — | Callback when selection changes |
|
|
| whether to show the border beneath the tab menu |
|
|
| whether to enable the sliding animation for the active tab indicator |
|
| — | whether the tabs should be small |
|
| — | The controlled value of the selected tab |
Interactive examples and edge cases for this component are in Storybook.
Name | Type | Default | Description |
|---|---|---|---|
|
|
| Id matching Tabs content if used. |
|
|
| Badge when > 0. |
|
|
| Icon before label. |
|
|
| Accessible name for lead icon. |
| Scenario | Component | Why |
|---|---|---|
| Filter or view-switch without URL change | TabMenu | Selection state only—no content panels, no routing. |
| Switch between content panels on one page | Tabs | Manages visibility of TabsContent panels. |
| Navigate to different routes (URL changes) | TabNav | Renders <a> links with SPA navigation and pathname matching. |