Rime

Stepper

The wizard's step list: lettered markers, states, and optional navigation back to finished steps.

Stepper heads a multi-step form. Steps are complete, current, upcoming or error; onStepClick lets people return to a finished step.

Installation

npx shadcn@latest add KezLahd/rime/stepper

Also installs: base, icon.

Usage

import { Stepper } from "@/components/ui";

<Stepper aria-label="Checkout" steps={steps} onStepClick={goTo} />

Examples

Default

API

Generated from the component's TypeScript types and JSDoc (scripts/gen-ui-registry.mjs), so it always matches the source.

Stepper

Stepper props
PropTypeDefaultDescription
stepsRequiredReadonlyArray<StepperStep>
onStepClick(id: string) => voidMakes complete, error and current steps clickable. Upcoming steps never are.
aria-labelstring
classNamestring

Theme tokens

Per-component tokens are undeclared by default, so the default shown is the fallback the CSS uses. Set one at :root (or in theme.css) to restyle every instance. Live values are read from this page, so they follow the Rime Studio.

Stepper per-component tokens
TokenDefaultLive value
--r-flat1px…

System tokens it reads

Stepper system tokens
TokenDefaultLive value
--brandtokens.css…
--brand-deeptokens.css…
--brand-gradienttokens.css…
--danger-basetokens.css…
--danger-inktokens.css…
--durtokens.css…
--easetokens.css…
--focus-ringtokens.css…
--glow-smtokens.css…
--ink-brandtokens.css…
--ink-headingtokens.css…
--ink-inversetokens.css…
--ink-mutedtokens.css…
--ink-secondarytokens.css…
--r-smtokens.css…
--recess-filltokens.css…
--rgb-brandtokens.css…
--rgb-brand-deeptokens.css…
--rgb-dangertokens.css…
--shadow-recesstokens.css…
--surface-solidtokens.css…
--text-captiontokens.css…
--text-microtokens.css…

Accessibility

  • The current step carries aria-current="step".

Do and don't

Do

  • Let people go back to any finished step.

Don't

  • Don't let people jump ahead past an unfinished step.

For AI agents

This page as markdown, rendered from the same registry entry. Point an agent at it (or add .md to this page's URL), or at /llms.txt for the index.

Open stepper.md