Componentnavigation0.6 KB gzipZero dependencies
Steps
Data-driven wizard progression with numbered stamps.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add stepsOr install the full npm package:
npm install bigbulluiUsage
tsx10 lines
import { Steps } from "@/components/ui/steps"; <Steps current={1} steps={[ { title: "Seat", description: "Select seat" }, { title: "Payment", description: "Confirm stub" }, { title: "Ticket", description: "Ready to admit" }, ]}/>Source code
steps.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxsteps.tsx67 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface StepItem { title: string; description?: string;} export interface StepsProps extends React.HTMLAttributes<HTMLDivElement> { steps: StepItem[]; current: number; // 0-indexed className?: string;} export function Steps({ steps = [], current = 0, className, ...props }: StepsProps) { return ( <div className={cn("w-full space-y-4", className)} {...props}> <ol className="flex items-start justify-between">Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Steps } from "@/components/ui/steps"; <Steps />| Prop | Type | Description |
|---|---|---|
| steps | StepItem[] | Configures steps. (Default: []) |
| current | number | Configures current. (Default: 0) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |