TidalUI

Product tour preview

Guide people through real interface features with anchored, nonblocking steps.

pro · Feedback · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/product-tour

Import components/ui/tidal.css, components/ui/product-tour.css. Wrap installed components in tidal-scope.

Preview

Product tour component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/product-tour.css";
import{TidalProductTour}from"./components/ui/product-tour";
export default()=><div className="tidal-scope"><TidalProductTour currentId={"example"} onDismiss={() => {}} onFinish={() => {}} onStepChange={() => {}} steps={[{id:"example",title:"Demo",description:"Demo"}]}/></div>;

API and props

TidalProductTour.currentId (required)
string | null

Required current id value accepted by this exported component.

TidalProductTour.onDismiss (required)
(reason: "skip" | "escape" | "dismiss") => void

Callback invoked when the dismiss interaction is proposed.

TidalProductTour.onFinish (required)
() => void

Callback invoked when the finish interaction is proposed.

TidalProductTour.onStepChange (required)
(id: string) => void

Callback invoked when the step change interaction is proposed.

TidalProductTour.steps (required)
ReadonlyArray<TidalTourStep>

Required steps value accepted by this exported component.

TidalProductTour.buttonProps
((action: TourAction) => ButtonProps) | undefined

Optional button props value accepted by this exported component.

TidalProductTour.className
string | undefined

Optional class name value accepted by this exported component.

TidalProductTour.dir
"ltr" | "rtl" | undefined

Optional dir value accepted by this exported component.

TidalProductTour.formatProgress
((current: number, total: number) => string) | undefined

Optional format progress value accepted by this exported component.

TidalProductTour.labels
Partial<{ previous: string; next: string; finish: string; skip: string; missing: string; invalid: string; }> | undefined

Optional labels value accepted by this exported component.

TidalProductTour.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas