v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS
OnboardingTour
A controllable sequence of named guidance steps.
Interactive preview
- Your workspace
- Orbit
Ready for your next idea
Usage
import { OnboardingTour } from "@devvy-ui/react";
<OnboardingTour open={open} onOpenChange={setOpen} steps={[{id:'start',title:'Your workspace',description:'Create your first project.',targetId:'workspace'}]} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | TourStep[] | required | Unique ids, titles, descriptions and optional targetId. |
| onComplete | () => void | — | Called on the last Finish action. |
| Dialog visibility props | open / onOpenChange | required | Controlled tour visibility. |
Accessibility & behavior
Platform Behavior & Guidelines
Native Dialog contains step navigation and Skip. Optional targets scroll into view and receive a temporary outline, cleaned up when steps change or the tour closes.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add onboarding-tourMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
OnboardingTour.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.