Input

fun Input(value: Int?, onValueChange: (Int?) -> Unit, modifier: Modifier = Modifier, range: IntRange = 0..10, suffix: String = "", placeholder: String = "-", step: Int = 1, enabled: Boolean = true, status: FormFieldStatus? = null, flexible: Boolean = false, testTag: String? = null)(source)

Input stepper with an editable text field between decrease and increase buttons.

Input stepper

Parameters

value

Value of the stepper, or null for an empty state

onValueChange

Called when the value changes (button press or blur commit)

modifier

The Modifier to be applied to the component

range

The min/max accepted value by the stepper

suffix

optional string displayed after the value

placeholder

text shown in the empty state when value is null

step

the quantity to be increased/decreased on each increment/decrement

enabled

True controls the enabled state of the stepper

status

indicates the validation state of the stepper

flexible

if true, component will fill max width

testTag

A test tag to find the internal stepper in a test


fun Input(state: StepperInputState, modifier: Modifier = Modifier, range: IntRange = 0..10, suffix: String = "", placeholder: String = "-", step: Int = 1, enabled: Boolean = true, status: FormFieldStatus? = null, flexible: Boolean = false, testTag: String? = null)(source)

Input stepper driven by a StepperInputState holder.

Input stepper

Parameters

state

The StepperInputState that holds the text field state

modifier

The Modifier to be applied to the component

range

The min/max accepted value by the stepper

suffix

optional string displayed after the value

placeholder

text shown in the empty state

step

the quantity to be increased/decreased on each increment/decrement

enabled

True controls the enabled state of the stepper

status

indicates the validation state of the stepper

flexible

if true, component will fill max width

testTag

A test tag to find the internal stepper in a test