Calm motion: animations on this site only fade, with no movement
Tour
Step-by-step spotlight walkthrough
A few-step walkthrough of a new or changed screen, pointing at the parts that matter. Keep it short, let people skip it, and do not hide anything essential in it.
Three to five stops is plenty. Bind v-model:open to "has not seen this yet" and v-model:step to resume where they left off. A step without a target sits centerd, which makes a good opening and closing frame.
Basic
- Each step points at
target(a selector) with a spotlight. Without a target it sits in the middle. The step panel takes focus. Esc skips. Focus returns to where it was when the tour ends. - It scrolls the target into view, without animation under reduced motion.
@finish/@skipsay how it ended.
Usage
ts
import { BlessTour } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
steps* | BlessTourStep[] | — | |
labels | Partial<{ next: string; prev: string; done: string; skip: string; step: (number: number) => string; }> | — | |
spotlight | boolean | true | dim the page and cut a hole around the target |
open | boolean | false | |
step | number | 0 |
Events
| Name | Payload | Description |
|---|---|---|
update:open | [value: boolean] | |
finish | [] | |
skip | [] | |
update:step | [value: number] |