Tour
v1.0.7Updated 27 Aug 2026Product tour / spotlight overlay. Dims the page with an SVG-masked scrim, cuts a rounded spotlight over each step's target, and shows a card with next / back / skip / finish controls and step dots.
Preview
Live · 10 stories▸Why this is recommendedtouronboardingspotlightwalkthrough+3
The default, out-of-the-box Tour.
- ✓First-run onboarding walkthroughs
- ✓Announcing new features in place
- ✓Guided setup over real UI
- SVG mask scrim with rounded spotlight cutout
- Targets by CSS selector or React ref
- Scrolls target into view (reduced-motion aware)
- Collision-aware placement (top / bottom / left / right, auto flip + viewport clamp)
- Repositions on resize / scroll / target resize
- Next / back / skip / finish + clickable step dots
- Focus trap; Arrow / Home / End / Escape keys
- aria-live step announcements, dialog semantics
- Controlled or uncontrolled open + stepIndex
- Localizable labels (e.g. Thai UI)
- Centered-card fallback when a target is missing
- ✕Blocking confirmations (use Dialog)
- ✕A single contextual hint (use Tooltip or Popover)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
stepsOrdered steps: { target: selector | ref, title, content, placement? }
yesopenControlled open state (defaultOpen for uncontrolled)
—stepIndexControlled active step (defaultStepIndex for uncontrolled)
—onStepChangeActive step callback
—onCloseDismissed early (Esc / skip / close button)
—onFinishUser completed the final step
—toneAccent tone for the primary action and active dot
—sizeCard width
—labelsLocalized button / progress labels (e.g. Thai)
—spotlightPaddingExtra px around the spotlight cutout
—Every tonal component shares the same tone × emphasis API, so the pair looks identical across Button, Badge, Alert and more.