Stepper

fun Stepper(value: Int, onValueChange: (Int) -> Unit, modifier: Modifier = Modifier, minValue: Int = Int.MIN_VALUE, maxValue: Int = Int.MAX_VALUE, step: Int = 1, enabled: Boolean = true, colors: StepperColors = StepperDefaults.stepperColors())

A Stepper component with COUI style.

A stepper lets the user adjust an integer value in fixed step increments using a minus and a plus button, mirroring COUI's COUIStepperView (32dp circular buttons, OPLUS step haptic).

Parameters

value

The current value of the Stepper.

onValueChange

The callback invoked with the new value when the user steps up or down.

modifier

The modifier to be applied to the Stepper.

minValue

The minimum value the Stepper can reach.

maxValue

The maximum value the Stepper can reach.

step

The increment/decrement applied on each button press.

enabled

Whether the Stepper is enabled.

colors