Stepper
Shows a run of steps in order, marking each one done, running or still to come.
- Amount reservedPending
- Recipient verifiedPending
- Rate lockedPending
- Funds deliveredPending
Configurations
Supported configurations for this component.
Configurations
3 examples- Amount reservedPending
- Recipient verifiedPending
- Rate lockedPending
- Funds deliveredPending
- Amount reservedComplete
- Recipient verifiedIn progress
- Rate lockedPending
- Funds deliveredPending
- Amount reservedComplete
- Recipient verifiedComplete
- Rate lockedComplete
- Funds deliveredComplete
Add to your project
One command adds this component to your project.
Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.
npx shadcn@latest add @aicanvas/••••••••••••Light and dark both come with the install and follow the dark class on <html>, the shadcn dark mode setup (next-themes with attribute="class").
Props
Every prop this component accepts. Any other prop is forwarded to the underlying element.
Stepper
| Prop | Type | Default | Description |
|---|---|---|---|
| activeStep | number | 0 | The index of the step in progress. Steps before it are complete, steps after it pending; -1 leaves every step pending and the step count or more marks every step complete. |
| labels | {pending: string, active: string, complete: string} | - | The state words read to assistive tech beside each title; defaults "Pending", "In progress", "Complete". |
| aria-label | string | - | Names the run for assistive tech (or use aria-labelledby). |
StepperItem
| Prop | Type | Default | Description |
|---|---|---|---|
| state | 'pending'|'active'|'complete' | - | Overrides the state the root's `activeStep` gives this step. |