Glide Tabs
Tabs with a marker that glides to the open one. Arrow keys move between them, a long row scrolls with faded edges, and each panel slides in from the side its tab is on.
pixikit.com/docs/app-ui/navigation/glide-tabs
Customize
Variant
Size
Full width
Duration320ms
Easing
Props
12| Name | Type | Default | Description |
|---|---|---|---|
tabs | GlideTab[] | DEFAULT_TABS | The tabs, in order. |
value | string | None | The open tab's id, when you hold the state. |
defaultValue | string | None | The tab open at first, when the tabs hold the state. |
onValueChange | (id: string) => void | None | Called with the id of the tab the user opens. |
renderPanel | (id: string) => ReactNode | None | Returns the content of a tab; it slides in from the side the new tab is on. |
variant | "underline" | "pill" | "bar" | "underline" | `underline` draws a line under the open tab, `pill` a soft fill behind it, `bar` a raised cell in a track. |
size | "sm" | "md" | "md" | The height and text size of the tabs. |
fullWidth | boolean | false | Shares the full width between the tabs. |
duration | number | 320 | Milliseconds the marker takes to glide. |
easing | "smooth" | "spring" | "linear" | "smooth" | How the marker moves. |
ariaLabel | string | "Sections" | Name for the tab list, read by screen readers. |
className | string | None |