Stepper

Numbered sketch circles joined by hand-drawn connectors. Completed steps fill in; the current step keeps a heavier ring.

✓
Details
2
Sketch
3
Publish
<Stepper
  steps={["Details", "Sketch", "Publish"]}
  current={1}
  roughness={1.5}
/>

CLI install

npx doodleui-react add stepper

Usage

import { Stepper } from "doodleui-react";

<Stepper
  steps={["Details", "Sketch", "Publish"]}
  current={1}
/>

The active step sets aria-current="step". A complement to Progress for multi-step flows.

Props

PropTypeDefaultNotes
stepsArray<StepperStep | ReactNode>requiredLabels, or { label, description } objects.
currentnumber00-based active step. Earlier steps fill in.
orientation"horizontal" | "vertical""horizontal"Layout axis for markers and connectors.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.