Component libraryProduct tour
Product tour
ProGuide people through real interface features with anchored, nonblocking steps.
npx shadcn@latest add @tidal-pro/product-tourInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/product-tour.css, components/ui/popover.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Controlled currentId or null and up to40 unique nonblank step IDs, titles and descriptions. Each step may return a real HTMLElement through target(), provide body content and a preferred side. The accepted Popover provides nonmodal focus and collision positioning. A noninteractive outline marks the visible target; missing or offscreen targets show an explicit fallback. Resize, scroll and target removal update positions, without automatic document scrolling. Outside controls stay interactive while the tour stays open. Native Back/Next/Finish/Skip actions preserve caller-first events and disabled props. Escape and finish call the supplied callbacks; no step or completion is persisted. Opening focuses the step heading, accepted steps advance focus only from inside the tour/body, and closing restores the original opener only while the popup/body still owns focus. Phone layouts place the same dialog as a bottom panel. Theme/direction, translated controls, progress formatter, native content ref and reduced motion are supported.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.