Stepper

Shows a run of steps in order, marking each one done, running or still to come.

  1. Amount reserved0.2 sPending
  2. Recipient verified0.4 sPending
  3. Rate locked0.3 sPending
  4. Funds delivered0.9 sPending

Configurations

Supported configurations for this component.

Configurations

3 examples
All pending
  1. Amount reserved0.2 sPending
  2. Recipient verified0.4 sPending
  3. Rate locked0.3 sPending
  4. Funds delivered0.9 sPending
Mid-way
  1. Amount reserved0.2 sComplete
  2. Recipient verified0.4 sIn progress
  3. Rate locked0.3 sPending
  4. Funds delivered0.9 sPending
All complete
  1. Amount reserved0.2 sComplete
  2. Recipient verified0.4 sComplete
  3. Rate locked0.3 sComplete
  4. Funds delivered0.9 sComplete

Add to your project

One command adds this component to your project.

1

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

PropTypeDefaultDescription
activeStepnumber0The 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-labelstring-Names the run for assistive tech (or use aria-labelledby).

StepperItem

PropTypeDefaultDescription
state'pending'|'active'|'complete'-Overrides the state the root's `activeStep` gives this step.

More Andromeda Pro components