Skip to content
PixiKit

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
NameTypeDefaultDescription
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`.
durationnumber4000How long the tour stays on each tab, in ms.
autoPlaybooleantrueMove through the tabs on their own once on screen, until the visitor clicks or presses a key.
loopbooleantrueAfter 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.
valuenumberNoneThe open tab's index, for a controlled tour.
onValueChange(value: number) => voidNoneCalled with the index of the tab that opens, by the tour or the visitor.
fontSizenumber16The text size in pixels; the tabs and the panel grow with it.
widthnumber640The widest it gets, in pixels; it shrinks to fit a narrow container.
heightnumber140The panel's least height, in pixels, so the tabs do not jump between short and long panels.
classNamestringNone

Related