Steps

A step indicator whose connecting line fills as you move forward.

no dependenciesMIT · free
  1. Account (completed)Your details
  2. 2PlanPick a plan
  3. 3PaymentAdd a card
  4. 4DoneStart building

Installation

npx shadcn@latest add https://ombakui.com/r/steps.json

Usage

import { Steps } from "@/components/steps";

<Steps
  current={1}
  steps={[{ title: "Account" }, { title: "Plan" }, { title: "Payment" }, { title: "Done" }]}
/>

Props

PropTypeDefaultDescription
steps*StepItem[]–The steps in order.
current*number–Index of the current step (0-based). Steps before it show as done.
orientation"horizontal" | "vertical""horizontal"Layout direction.
classNamestring–