SpinButton

@Composable
fun SpinButton(value: Double, modifier: Modifier = Modifier, onActivate: () -> Unit = {}, onValueChange: (Double) -> Unit = {}, lower: Double = 0.0, upper: Double = 0.0, stepIncrement: Double = 0.0, pageIncrement: Double = 0.0, climbRate: Double = 0.0, digits: Int = 0, numeric: Boolean = false)

Creates a org.gnome.gtk.SpinButton to display numeric values.

Parameters

value

Number displayed in the component.

modifier

Compose Modifier for layout and styling.

onActivate

Callback triggered when the component is activated (pressing "enter").

onValueChange

Callback triggered when the value changes.

lower

Minimum allowed value.

upper

Maximum allowed value.

stepIncrement

How much the value increments or decrements by when using the buttons or the arrow keys.

pageIncrement

How much the value increments or decrements by when using "PageUp" or "PageDown".

climbRate

The acceleration rate when holding down an arrow button or key.

digits

The number of decimal places to display.

numeric

Whether non-numeric characters are ignored.