Product tour
ProA guided tour that spotlights one real control at a time, with a card that finds the side with room, keeps your place when paused, resumes from a small chip, and says so when a control is not on screen. Coachmark is the one-off hint.
pnpm dlx shadcn@latest add @caliper/product-tourWhen to use #
Use it for
- First run of a product, or after a redesign moves things.
- Pointing out one new control without a full tour.
Skip it when
- Teaching a whole workflow; use an onboarding checklist that people complete for real.
Installation #
pnpm dlx shadcn@latest add @caliper/product-tour
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source. It is built from ProductTour, TourResume and Coachmark.
import { ProductTour, TourResume, Coachmark } from "@/components/ui/product-tour"
The worked example comes with Pro
The 56-line example behind the preview opens here with a Pro or Team licence.
API reference #
ProductTour
component
TourResume
component
Coachmark
component
Accessibility #
It exposes dialog and status semantics, with aria-hidden, aria-modal, aria-label, aria-describedby, aria-live and aria-expanded kept in step with state. Changes that matter are announced through a live region.
Motion #
It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.