Steps

Steps

Navigation
Workflow

Multi-step progress indicators for wizards, onboarding flows, and sequential processes.

Preview

Interactive step indicator with navigation

  1. Account
  2. 2
    Profile
  3. 3
    Preferences
  4. 4
    Complete

Compact Variant

Minimal steps without descriptions

  1. One
  2. Two
  3. 3
    Three
  4. 4
    Four
  5. 5
    Five

Vertical Steps

Vertical layout for sidebar or narrow containers

  1. Account
    Create your account
  2. Profile
    Set up your profile
  3. 3
    Preferences
    Configure settings
  4. 4
    Complete
    Review and finish

Props

Steps component API reference

PropTypeDefaultDescription
steps*StepItem[]—Array of step items with label and description
current*number—Current active step index (0-based)
onChange(step: number) => void—Makes completed steps clickable and jumps back to them
orientation'horizontal' | 'vertical''horizontal'Layout orientation
size'sm' | 'md''md'Step indicator size
classNamestring—Additional CSS classes

Usage

Import and implementation example

import { Steps } from '@/components/ui/steps'
const steps = [
{ label: 'Account', description: 'Create your account' },
{ label: 'Profile', description: 'Set up your profile' },
{ label: 'Complete', description: 'Review and finish' },
]
const [current, setCurrent] = useState(0)
<Steps
steps={steps}
current={current}
onChange={setCurrent}
orientation="horizontal"
/>

Features

Built-in functionality

  • Two orientations: Horizontal and vertical layouts
  • Step states: Completed, current, and pending states
  • Check icons: Completed steps show check marks
  • Active ring: Current step has ring highlight
  • Connecting lines: Progress lines between steps

Accessibility

ARIA support and keyboard navigation

ARIA Attributes

aria-current="step" on active steprole="list" for step sequenceStep completion announced to screen readers

Keyboard Navigation

KeyAction
TabNavigate between steps (if clickable)
Enter / SpaceActivate step

Notes

  • Step numbers provide fallback for color-only states
  • Descriptions give context for each step
  • Progress is communicated semantically

Related Components