Components
- Accordion
- Action Bar
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context Menu
- Data List
- Date Picker
- Dialog
- Drawer
- Editable
- Field
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- Table
- Tabs
- Textarea
- Timer
- Toast
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
Step 1
Step 2
Step 3
All steps completed. You're all set!
Installation
pnpm dlx shadcn@latest add https://shark.vini.one/r/steps.json
Usage
import { Steps, StepsList, StepsItem, StepsTrigger, StepsSeparator, StepsIndicator, StepsTitle, StepsDescription, StepsContent, StepsCompletedContent, StepsNext, StepsPrevious } from "@/components/ui/steps";
<Steps> <StepsList> <StepsItem> <StepsTrigger> <StepsIndicator /> <StepsTitle /> </StepsTrigger> <StepsSeparator /> </StepsItem> </StepsList> <StepsContent /> <StepsCompletedContent /> <StepsPrevious /> <StepsNext /> </Steps>
Examples
Title
Use <StepsTitle /> to display a description for each step.
Description
Use <StepsDescription /> to display a description for each step.
Vertical
Use orientation="vertical" for a vertical layout.
Personal
Company
Create
Completed
Loading
Controlled
Use the step and onStepChange props to control the active step programmatically.
Please provide your name and email address.
A few details about your company.
Start collaborating with your team.
All steps completed. You're all set!
Custom Icon
API Reference
Steps
Root component. Manages step state and connectors.
| Prop | Type | Default |
|---|---|---|
count | number | - |
step | number | - |
defaultStep | number | - |
orientation | "horizontal" | "vertical" | "horizontal" |
linear | boolean | false |
onStepChange | (details: StepChangeDetails) => void | - |
onStepComplete | () => void | - |
StepsList
Wraps the list of steps. Handles connector layout.
| Attribute | Default |
|---|---|
--steps-gutter | --spacing(2) |
--steps-icon-size | --spacing(4) |
--steps-size | --spacing(8) |
For a complete list of props, see the Ark UI documentation.