Skip to content

Configuration

Every step carries a configuration block that controls how it is rendered.

FieldTypeDescription
type"banner" | "pointer" | "dialog" | "announcement"Step presentation style.
progressButtonTextstringLabel for the primary “advance” button.
progressButtonPosition"left" | "center" | "right"Where to render the progress button within the footer.
contentJustifysee belowHorizontal distribution of footer content.
showStepCountbooleanShow the step index in the footer.
customPivotSelectorstringCSS selector for the anchor element. Required for pointer.
isClosablebooleanShow the close button in the step header.
positionDialogPositionPosition for dialogs and announcements.
animationDirection"auto" | "top" | "right" | "bottom" | "left"Direction for step transitions.

contentJustify accepts "left", "right", "justify-between", "justify-around", "justify-evenly", or null.

Each of primaryButton, previousButton, and closeButton takes:

{
show?: boolean;
text: string;
action: "next" | "prev" | "complete" | "custom" | "nothing";
linkUrl?: string;
linkTarget?: string;
icon?: string;
}

Optional beacon that draws attention to the anchor before the step opens:

beacon: {
show: true,
type: "hotspot", // or "badge" | "label"
position: "top-right",
label: "New",
}

The tour.configuration block is optional:

FieldTypeDescription
type"tour" | "slideout" | "banner" | "announcement"Tour format.
showStepCountbooleanShow step count across the tour.
progressType"text" | "bar"Render progress as text (“3 of 8”) or a bar.
animation{ enabled, direction, speed }Tour-wide animation settings.
themeSame shape as step themeTour-wide theme overrides.
{
id: "step-save",
title: "Save your work",
description: "Click here to save your work at any time.",
configuration: {
type: "pointer",
progressButtonText: "Got it",
progressButtonPosition: "right",
contentJustify: "justify-between",
showStepCount: false,
customPivotSelector: "#save-button",
isClosable: true,
},
}
{
id: "step-accept-terms",
title: "Accept the terms",
description: "You must accept the terms before continuing.",
configuration: {
type: "dialog",
progressButtonText: "I accept",
progressButtonPosition: "right",
contentJustify: "justify-between",
showStepCount: false,
customPivotSelector: "",
isClosable: false,
},
}