Componentnavigation1.21 KB gzipZero dependencies
Wizard
Multi-step wizard with validation shake, progress markers and summary.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add wizardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Wizard } from "@/components/ui/wizard"; <Wizard />Source code
wizard.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxwizard.tsx100 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface WizardStep { id: string; title: string; description?: string; /** Step validation callback; step does not advance if returns false */ validate?: () => boolean;} export interface WizardProps extends React.HTMLAttributes<HTMLDivElement> { steps: WizardStep[]; onFinish?: () => void; children: React.ReactNode[];}Props
| Prop | Type | Description |
|---|---|---|
| steps | WizardStep[] | Configures steps. (Default: []) |
| onFinish | () => void | Callback invoked on finish. |
| children | React.ReactNode[] | Child elements rendered inside the component. (Default: []) |