Componentnavigation1.21 KB gzipZero dependencies

Wizard

Multi-step wizard with validation shake, progress markers and summary.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add wizard

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Wizard } from "@/components/ui/wizard"; <Wizard />

Source code

wizard.tsx + 1 helper

Zero 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

PropTypeDescription
stepsWizardStep[]Configures steps. (Default: [])
onFinish() => voidCallback invoked on finish.
childrenReact.ReactNode[]Child elements rendered inside the component. (Default: [])