Rime

ProgressSteps

A horizontal track of steps with detail and meta lines, or a compact dot track for table cells.

ProgressSteps shows where something is in a fixed sequence (a shipment: packed, shipped, delivered). compact fits a table cell.

Installation

npx shadcn@latest add KezLahd/rime/progress-steps

Also installs: base.

Usage

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

<ProgressSteps aria-label="Shipment" steps={[{ label: "Packed", state: "done" }, { label: "Shipped", state: "current" }]} />

Examples

Full and compact

  1. Packed, done2 boxesDone 12 Oct
  2. Shipped, in progressExpressDue 14 Oct
  3. Delivered, not yetSignature

API

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

ProgressSteps

ProgressSteps props
PropTypeDefaultDescription
stepsRequiredReadonlyArray<ProgressStep>
aria-labelstring
compactbooleancompact = segments plus a one-line caption, for customer cards.
captionReactNodeCompact caption, e.g. "Delivery 2 of 3 dispatched". Required in compact mode for meaning.
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.

ProgressSteps per-component tokens
TokenDefaultLive value
--r-flat3px…

System tokens it reads

ProgressSteps system tokens
TokenDefaultLive value
--brand-gradienttokens.css…
--danger-basetokens.css…
--danger-inktokens.css…
--ink-brandtokens.css…
--ink-mutedtokens.css…
--ink-secondarytokens.css…
--rgb-brandtokens.css…
--rgb-brand-deeptokens.css…
--rgb-contacttokens.css…
--rgb-dangertokens.css…
--text-captiontokens.css…
--text-microtokens.css…

Accessibility

  • An ordered list; each step's state is in its accessible text, not colour alone.

Do and don't

Do

  • Keep labels to one or two words.

Don't

  • Don't make it interactive; that is Stepper.

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 progress-steps.md