Tour
Step-by-step feature onboarding with a fullscreen overlay and target highlighting.
Basic usage
Start the tour
Highlighted area 1
Highlighted area 2
Tour events
Step events
Highlighted area 1
Highlighted area 2
Controlled step and visibility
Both open and current are controlled attributes: an external button / JS sets open to start the tour, and sets current to jump directly to a given step (no need to click through).
Controlled open / current
Controlled highlight area 1
Controlled highlight area 2
Controlled highlight area 3
API
Attributes
| Attribute | Description | Type | Default |
|---|---|---|---|
current | Current step index | string | 0 |
open | Start the tour (boolean attribute; starts when present) | boolean | — |
steps | Steps JSON | TourStep[] | string | [] |
Events
| Event | Description |
|---|---|
oas-cancel | Skipped or cancelled via Esc |
oas-finish | "Finish" was clicked on the last step |
oas-step | The step changed, detail: { index } |
The overlay highlights the target, role="dialog" + aria-modal="true"; supports "Previous / Next / Skip" and the Esc key.