Tabs: Many tabs
When tabs don't fit, the list scrolls sideways, fades the edges with more to see, and scrolls the active or focused tab into view.
This adds the example as components/examples/tabs/overflow.tsx, together with the Tabs component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/tabs-overflow.jsonTo add only the component, follow the Tabs installation.
Props in this example
The Tabs props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
defaultValue | any | 0 |
| Prop | Type | Default |
|---|---|---|
variant | "default" | "line" | "default" |
| Prop | Type | Default |
|---|---|---|
value | any | – |
Every prop is in the Tabs API reference.
See them all, with keyboard support and accessibility notes, on the Tabs page.
- BreadcrumbA trail of links to the current page that wraps safely, mirrors in right-to-left layouts and expands collapsed segments in place.
- Navigation menuSite navigation with dropdowns, or one full-width panel that stays open while its content slides between menus.
- PaginationPage navigation that keeps every button in place, glides to the current page and jumps to any page from the ellipsis.
- SidebarAn app sidebar that collapses to icons or off canvas, stays pinned under your header, and becomes a swipeable sheet on phones.