rememberFioriStepperValue

fun rememberFioriStepperValue(value: Float = 0.0f, mode: RoundingMode = RoundingMode.HALF_UP, decimalPlaces: Int = 0, valueRange: ClosedFloatingPointRange<Float> = 0f..100f, step: Float = 1.0f, maxDigits: Int = FioriStepperValue.DEFAULT_MAX_DIGITS): MutableState<FioriStepperValue>

Creates a remembered MutableState of FioriStepperValue for Compose.

This function provides state hoisting for stepper values with automatic configuration persistence across recompositions and configuration changes.

Return

MutableState instance of FioriStepperValue with initial configuration

Parameters

value

Initial numeric value (default: 0f)

mode

Decimal rounding behavior (default: RoundingMode.DOWN)

decimalPlaces

Number of decimal digits to display (default: 0)

valueRange

Allowed value range (default: 0f..100f)

step

Value change increment (default: 1.0f)

maxDigits

Maximum number of characters allowed in input (default: FioriStepperValue.DEFAULT_MAX_DIGITS)