Steps
Used to indicate progress through a multi-step process
Usage
import { Steps } from "@chakra-ui/react"<Steps.Root>
<Steps.List>
<Steps.Item>
<Steps.Trigger>
<Steps.Indicator />
<Steps.Title />
<Steps.Description />
</Steps.Trigger>
<Steps.Separator />
</Steps.Item>
</Steps.List>
<Steps.Content />
<Steps.CompletedContent />
<Steps.PrevTrigger />
<Steps.NextTrigger />
</Steps.Root>Examples
Sizes
Use the size prop to change the size of the steps component.
Variants
Use the variant prop to change the appearance of the steps component.
Colors
Use the colorPalette prop to change the color scheme of the component.
Trigger
Use the Steps.Trigger component to make the step clickable.
Vertical
Use the orientation prop to change the orientation of the steps component.
Controlled
Use the step and onStepChange props to control the current step of the steps
component.
Store
An alternative way to control the steps is to use the RootProvider component
and the useSteps store hook.
This way you can access the steps state and methods from outside the steps.
current step: 1Icon
Pass the icon prop to the StepsItem component to display an icon.
Description
Pass the description prop to the StepsItem component to display a
description.
Props
Root
| Prop | Default | Type |
|---|---|---|
orientation | horizontal | 'vertical' | 'horizontal'The orientation of the component |
colorPalette | gray | 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink'The color palette of the component |
variant | solid | 'solid' | 'subtle'The variant of the component |
size | md | 'xs' | 'sm' | 'md' | 'lg'The size of the component |
as | React.ElementTypeThe underlying element to render. | |
asChild | booleanUse the provided child element as the default rendered element, combining their props and behavior. For more details, read our Composition guide. | |
unstyled | booleanWhether to remove the component's style. | |
count | numberThe total number of steps | |
defaultStep | numberThe initial value of the stepper when rendered. Use when you don't need to control the value of the stepper. | |
ids | ElementIdsThe custom ids for the stepper elements | |
linear | booleanIf `true`, the stepper requires the user to complete the steps in order | |
onStepChange | (details: StepChangeDetails) => voidCallback to be called when the value changes | |
onStepComplete | VoidFunctionCallback to be called when a step is completed | |
step | numberThe controlled value of the stepper |
Explorer
Explore the Steps component parts interactively. Click on parts in the sidebar
to highlight them in the preview.
Onboarding Steps
Sign up with your email and create a secure password. Make sure to verify your email address.
Add your personal details, profile picture, and preferences so we can tailor your experience.
Explore the dashboard, connect with others, and start using the features immediately.
✅ All steps are complete! You're ready to go.
Component Anatomy
Hover to highlight, click to select parts
root
list
item
trigger
indicator
separator
content
title
description
nextTrigger
prevTrigger
progress