Skip to content
PixiKit

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
NameTypeDefaultDescription
tabsGlideTab[]DEFAULT_TABSThe tabs, in order.
valuestringNoneThe open tab's id, when you hold the state.
defaultValuestringNoneThe tab open at first, when the tabs hold the state.
onValueChange(id: string) => voidNoneCalled with the id of the tab the user opens.
renderPanel(id: string) => ReactNodeNoneReturns 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.
fullWidthbooleanfalseShares the full width between the tabs.
durationnumber320Milliseconds the marker takes to glide.
easing"smooth" | "spring" | "linear""smooth"How the marker moves.
ariaLabelstring"Sections"Name for the tab list, read by screen readers.
classNamestringNone

More navigation blocks in Pro

View all

Related