Garden 9 is now available.
The website has been updated to the latest major version. View previous versions
Skip to main content
Design
Components
Patterns
    • Introduction
      • Overview
    • Foundations
      • Bedrock CSS
      • Design tokens
      • Containers
      • Theming
      • Versions
    • Components
      • Accordion
      • Anchor
      • Avatar
      • Breadcrumbs
      • Buttons
      • Chrome
      • Code block
      • Color picker
      • Color swatch
      • Date picker
      • Draggable
      • Drawer
      • Forms
      • Grid
      • Loaders
      • Menu
      • Modal
      • Notification
      • Pagination
      • Pane
      • Sheet
      • Status indicator
      • Stepper
      • Table
      • Tabs
      • Tags
      • Tiles
      • Timeline
      • Tooltip
      • Tooltip dialog
      • Typography
      • Well
    Table of Contents
    • How to use it
      • Default
      • Layout
      • Icons
    • Configuration
    • API
      • Stepper

    Stepper

    A Stepper guides users through steps of a task in sequential order.


    Table of Contents
    • How to use it
      • Default
      • Layout
      • Icons
    • Configuration
    • API
      • Stepper

    Used for this
    • For multi-step flows that must be completed in order

    How to use it

    Default

    The default usage of a Stepper component.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Layout

    A Stepper is vertical by default but can be horizontal using isHorizontal.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Icons

    Label numbers can be replaced with icons.

    Toggle dark mode
    Set primary hue
    Toggle RTL
    Open in CodeSandbox
    Copy code
    View code

    Configuration

    • Name9.5.3•View source•View on npm
    • Installnpm install @zendeskgarden/react-accordions
    • Depsnpm install react react-dom styled-components @zendeskgarden/react-theming
    • Importimport { Stepper } from '@zendeskgarden/react-accordions'

    API

    The Stepper component follows this structure:

    <Stepper>  <Stepper.Step>    <Stepper.Label />    <Stepper.Content />  </Stepper.Step>  {/* other steps */}</Stepper>

    Stepper orientation

    • Define the content for a vertical stepper using the Stepper.Content for each step
    • Render the content for a horizontal stepper externally. See layout example for details.

    Stepper

    Extends OlHTMLAttributes<HTMLOListElement>

    Prop nameTypeDefaultDescription
    activeIndex
    number
    0

    Defines the currently active step, starting at 0

    isHorizontal
    boolean

    Applies horizontal layout styling

    Stepper.Content

    Extends HTMLAttributes<HTMLDivElement>

    Nest the Content within a Step component.

    Stepper.Label

    Extends HTMLAttributes<HTMLDivElement>

    The Label component renders the provided label text with the step number or the provided icon. Nest it within a Step.

    Prop nameTypeDefaultDescription
    icon
    ReactElement<any, string | JSXElementConstructor<any>>

    Replaces the label number with an icon

    iconProps
    SVGAttributes<SVGElement>

    Passes props to the default check icon

    isHidden
    boolean

    Hides the label text

    Stepper.Step

    Extends LiHTMLAttributes<HTMLLIElement>

    Wrap each step’s Label and corresponding Content together with the Step component.

    Garden is the design system by Zendesk.
    BlogGitHubVersions
    © Zendesk 2025