Tour Tabs
Tabs that move on by themselves while the open tab's line fills. A click or a key press hands control to the visitor.
pixikit.com/docs/components/tour-tabs
Customize
Duration3000ms
Auto play
Loop
Orientation
Font size16px
Width640px
Height140px
Props
11| Name | Type | Default | Description |
|---|---|---|---|
tabs | (string | TourTab)[] | ["Plan: Sketch the flow and agree on what ships first.", "Build: Each piece lands behind a flag and is ready to try out.", "Launch: Turn it on for everyone when it feels right."] | The tabs: `{ label, content, duration? }`, or text written `Label: what the panel says`. |
duration | number | 4000 | How long the tour stays on each tab, in ms. |
autoPlay | boolean | true | Move through the tabs on their own once on screen, until the visitor clicks or presses a key. |
loop | boolean | true | After the last tab start again from the first; off, the tour ends on the last tab. |
orientation | "horizontal" | "vertical" | "horizontal" | Tabs in a row above the panel, or in a column beside it. |
value | number | None | The open tab's index, for a controlled tour. |
onValueChange | (value: number) => void | None | Called with the index of the tab that opens, by the tour or the visitor. |
fontSize | number | 16 | The text size in pixels; the tabs and the panel grow with it. |
width | number | 640 | The widest it gets, in pixels; it shrinks to fit a narrow container. |
height | number | 140 | The panel's least height, in pixels, so the tabs do not jump between short and long panels. |
className | string | None |