Skip to Content

Stepper

A numeric input composed of a decrement button, a value label, and an increment button. Supports optional min/max clamping, a configurable step, and a disabled state.

Constructor

Stepper

Creates a Stepper element.

ParameterDescription
valueThe current integer value.
onChangedCallback invoked on increment or decrement. Null means disabled.
minOptional lower bound. The value will not go below this.
maxOptional upper bound. The value will not go above this.
stepThe increment/decrement step size. Defaults to 1.
labelOptional label shown above the control.
keyAn optional key for reconciliation identity.

Properties

Label

Optional label displayed above the stepper control. Null means no label is shown.

Max

The maximum allowed value. Null means no upper bound.

Min

The minimum allowed value. Null means no lower bound.

OnChanged

Callback invoked when the user presses increment or decrement. Receives the new clamped value. Null means the stepper is disabled.

Step

Amount added or subtracted on each press. Defaults to 1.

Value

The current numeric value displayed by the stepper.

Methods

CreateState

Last updated on