BigBlocks
Account
2
Security
3
Backup
4
Complete
Installation
npx shadcn@latest add https://bigblocks-registry.vercel.app/r/step-indicator.jsonUsage
import { StepIndicator } from "@/components/ui/step-indicator"
const steps = [
{ id: "1", label: "Account", status: "complete" },
{ id: "2", label: "Security", status: "active" },
{ id: "3", label: "Backup", status: "pending" },
{ id: "4", label: "Complete", status: "pending" }
]
export default function Example() {
return <StepIndicator steps={steps} />
}Examples
Vertical
Use the vertical variant for authentication flows and onboarding processes.
Generate Identity
2
Set Password
3
Create Profile
4
Save Backup
With Descriptions
Add descriptions to guide users through complex authentication steps.
1
Create Identity
Generate your Bitcoin keypair
2
Secure Account
Set encryption password
3
Download Backup
Save encrypted recovery file
4
Connect OAuth
Optional cloud backup
API Reference
StepIndicator
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | Step[] | - | Array of step objects |
| className | string | "" | Additional CSS classes |
| variant | "horizontal" | "vertical" | "horizontal" | Display orientation |
Step Interface
interface Step {
id: string
label: string
description?: string
status: "pending" | "active" | "complete"
}