Shows progress through a multi-step flow.
$ pnpm dlx shadcn@latest add https://dashral.com/r/steps.jsonInstallation
$ pnpm dlx shadcn@latest add https://dashral.com/r/steps.jsonAdds the component, the components it builds on, its npm packages and the theme tokens it uses. Using Dashral often? Add the registry to components.json once:
components.json
{
"registries": {
"@dashral": "https://dashral.com/r/{name}.json"
}
}Then add components by name:
$ pnpm dlx shadcn@latest add @dashral/stepsUsage
example.tsx
import { Steps } from "@/components/dashral/steps"
<Steps items={[{ title: "Account" }, { title: "Workspace" }, { title: "Invite your team" }]} current={1} />Examples
Vertical
Great for order tracking.
API reference
Steps
Also takes every prop of <ol>(opens in a new tab).
| Prop | Type | Default |
|---|---|---|
items | { title, description? }[]The steps, in order. Required. | — |
current | numberZero-based index of the current step. Required. | — |
orientation | "horizontal" | "vertical" | "horizontal" |
Accessibility
- An ordered list; the current step has aria-current="step" and completed steps say “(completed)”.
Motion
- When a step is done, its connector fills in the reading direction and the check springs in; circles change color smoothly.