Steps

Steps is a neobrutalist React component from Cruise UI. A numbered stepper: horizontal on desktop, vertical on phones. Install it with npx shadcn@latest add @cruiseui/steps.

Install

Terminal

npx shadcn@latest add @cruiseui/steps

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners
  1. Cart (done)2 items
  2. Delivery (done)
  3. Payment (current step)
  4. Done

When to use it

When to use

A task split into 3–5 steps in a fixed order: checkout, sign-up, publishing.

When not to

Steps people can do in any order (use Tabs or a checklist).

Props

CruiseSteps

PropTypeDefaultDescription
stepsCruiseStep[]——
currentnumber—Index of the current step (0-based).
label?string"Progress"Accessible name for the list, e.g. "Checkout progress".
onStepClick?((index: number) => void)——
className?string——

Accessibility

  • An <ol>; the current step has aria-current="step".
  • Each state is also in words for screen readers (done, current step).