rememberStepperState

fun rememberStepperState(initialValue: Int? = null, range: IntRange = 0..10, step: Int = 1): StepperState(source)

Creates and remembers a StepperState that survives recomposition and state restoration.

Parameters

initialValue

Starting value, or null for an empty state.

range

Accepted value bounds.

step

Amount added or subtracted per increment/decrement.