Steps

Fiddle
A numbered setup flow with its current step.
1
2
3

Usage

The import, then a use to start from. Both copy as they are.

Import
import { CodeSnippet } from "@/components/ui/CodeSnippet";import { Step, Steps } from "@/components/ui/steps";
Example
<Steps>    <Step number={1} title="Install the CLI" completed>        <CodeSnippet code="npm install -g fern-api" />    </Step>    <Step number={2} title="Generate your SDK" subtitle="Pick the generator group to run." current>        <CodeSnippet code="fern generate --group python-sdk" />    </Step>    <Step number={3} title="Publish your SDK" /></Steps>

When to use

Use it for

  • A numbered setup flow on one page, each step's content under its title.
  • Mark finished steps completed; set current on the active step to highlight its number marker and expose aria-current="step".
  • Step content is optional; omit children when a step needs no additional details or action.
  • Titles are actions in sentence case: “Install the CLI”, not “CLI installation”.
  • Add an optional subtitle for a one-line word on what the step does, under its title.

Avoid

  • A wizard that moves between screens: that's the onboarding layout.
  • Numbered facts. Steps are things to do, in order.

Accessibility

Checks

  • Each title says what to do, so the order reads without the numbers.
  • The active title is marked with aria-current="step".

API

Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.

Steps

Its stories don't declare argTypes, so no props are listed. The variants show its states.
Also exportsStep
VariantsDefaultWithSubtitlesWithCompletedStepsWithCurrentStep

Keep going