Basic usage
Loading...
Compact
Many tabs (paddles)
Paddles & overflow
Paddles appear automatically when the tab list overflows.
Loading...
With autoScrollOffset
Auto-scroll offset
The autoScrollOffset prop controls the X position offset when auto-scrolling to the active tab. This prevents the active tab from being covered by the paddle on the left side. Try clicking tabs near the edges to see the difference.
Loading...
With custom sized paddles
Paddle styling
You can adjust the size of the paddles via styles.paddle.
Loading...
Long text tabs
Loading...
Disabled tab
Loading...
With start media
Media sizing
For start media, use circular images sized 24×24 for regular chips and 16×16 for compact chips.
Loading...
Custom TabComponent
Custom Tab behavior
When providing a custom TabComponent, use useTabsContext() and call updateActiveTab(id) to update selection state. Reflect the active state (e.g., end icon state) based on activeTab?.id === id.
Loading...