Stepper

Stepper

Stepper component guides users through a multi-step process.

Examples
API

The Stepper component is a compound component that consists of multiple parts.

Stepper

The root component that provides context for the stepper.

PropdescriptionTypeDefault
children

The stepper content (Container, Buttons, Input)

React.ReactNode

undefined

value

The controlled value of the stepper

number

undefined

defaultValue

The default value of the stepper (uncontrolled)

number

0

onValueChange

Callback when the stepper value changes

(value: number) => void

undefined

min

The minimum value allowed

number

0

max

The maximum value allowed

number

100

type

Whether the value is editable via input or displayed as text

'input' | 'text'

'input'

StepperContainer

A flex container that wraps the stepper elements.

StepperDecreaseButton

Button to decrease the stepper value by 1. Automatically disabled when value reaches min.

StepperIncreaseButton

Button to increase the stepper value by 1. Automatically disabled when value reaches max.

StepperInput

Displays the current value. When type is 'input', users can edit the value directly.