Skip to Content
DocsEnterpriseBlogShowcase

Steps

Used to indicate progress through a multi-step process

Ark UISourceStorybookRecipe
Step 1

Setup

If you don't already have the snippet, run the following command to add the steps snippet

chakra snippet add steps

The snippet includes a closed component composition for the Steps component.

Usage

import {
  StepsCompleteContent,
  StepsContent,
  StepsItem,
  StepsList,
  StepsNextTrigger,
  StepsPrevTrigger,
  StepsRoot,
} from "@/components/ui/steps"
<StepsRoot>
  <StepsList>
    <StepsItem />
  </StepsList>
  <StepsContent />
  <StepsCompleteContent />
  <StepsPrevTrigger />
  <StepsNextTrigger />
</StepsRoot>

Examples

Sizes

Use the size prop to change the size of the steps component.

Step 1
Step 1
Step 1

Variants

Use the variant prop to change the appearance of the steps component.

Step 1
Step 1

Colors

Use the colorPalette prop to change the color scheme of the component.

Step 1
Step 1
Step 1
Step 1
Step 1
Step 1
Step 1
Step 1
Step 1
Step 1

Vertical

Use the orientation prop to change the orientation of the steps component.

Step 1

Icon

Pass the icon prop to the StepsItem component to display an icon.

Contact Details

Description

Pass the description prop to the StepsItem component to display a description.

Step 1

Props

Root

PropDefaultType
orientation 'horizontal'
'vertical' | 'horizontal'

The orientation of the component

colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

variant 'solid'
'solid' | 'subtle'

The variant of the component

size 'md'
'sm' | 'md' | 'lg'

The size of the component

asChild
boolean

Use the provided child element as the default rendered element, combining their props and behavior.

For more details, read our Composition guide.
count
number

The total number of steps

defaultStep
number

The initial value of the step

ids
ElementIds

The custom ids for the stepper elements

linear
boolean

If `true`, the stepper requires the user to complete the steps in order

onStepChange
(details: StepChangeDetails) => void

Callback to be called when the value changes

onStepComplete
VoidFunction

Callback to be called when a step is completed

step
number

The current value of the stepper

as
React.ElementType

The underlying element to render.

unstyled
boolean

Whether to remove the component's style.