Components
- Accordion
- Add to Cart
- Animated List
- Carousel
- Collapsible Sidebarnew
- Dynamic Island
- Expandable Cardnew
- Expanding Searchnew
- Filter Grid
- Kanban Board
- Layout Switcher
- Morphing Popover
- Number Flip
- Page Transition
- Product Gallery
- Segmented Control
- Sortable Table
- Stack Navigator
- Status Button
- Step Wizard
- Tabs
- Text Morphnew
- Theme Mode Switch
- Theme Morph Button
- Theme Toggle Button
- Theme Toggle Switch
- Theme Transition
- Toast Stacknew
Name your workspace
You can change it later in settings.
Pick a plan
Every plan starts with a 14-day trial.
Invite your team
Separate addresses with commas. You can skip this.
Ready to go
Check the details before creating the workspace.
- Workspace
- —
- Plan
- Pro · $12 / month
- Invites
- None
Installation
$ pnpm dlx shadcn@latest add @transition-kit/step-wizardUsage
import {
StepWizard,
StepWizardContent,
StepWizardDescription,
StepWizardIndicator,
StepWizardNext,
StepWizardPrevious,
StepWizardStep,
StepWizardTitle,
} from "@/components/transitions/step-wizard";<StepWizard>
<StepWizardIndicator />
<StepWizardContent>
<StepWizardStep label="Account" canAdvance={email !== ""}>
<StepWizardTitle>Create your account</StepWizardTitle>
<StepWizardDescription>
We'll send a confirmation link.
</StepWizardDescription>
<Input value={email} onChange={(event) => setEmail(event.target.value)} />
</StepWizardStep>
<StepWizardStep label="Plan">…</StepWizardStep>
<StepWizardStep label="Review">…</StepWizardStep>
</StepWizardContent>
<div className="flex justify-between">
<StepWizardPrevious />
<StepWizardNext />
</div>
</StepWizard>const { step, count, next, previous, goTo, isFirst, isLast } = useStepWizard();API Reference
StepWizard
| Prop | Type | Default | Description |
|---|---|---|---|
step | number | - | Controlled step index. |
defaultStep | number | 0 | Initial step index when uncontrolled. |
onStepChange | (step: number) => void | - | Called with the target step after navigation. |
StepWizardStep
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Step <n>" | Shown in the indicator and used as the step's accessible name. |
canAdvance | boolean | (() => boolean) | true | false blocks Next; a function runs when Next is pressed and blocks it by returning false. |
aria-label | string | "<label> (n of N)" | Accessible name override for the step group. |
useStepWizard
| Return | Type | Description |
|---|---|---|
step | number | The current step index. |
count | number | The total number of steps. |
goTo | (step: number) => void | Moves to the step index. |
next | () => void | Moves forward unless canAdvance blocks it. |
previous | () => void | Moves back one step. |
isFirst | boolean | Whether the first step is active. |
isLast | boolean | Whether the last step is active. |