SettingsNumericInput

fun SettingsNumericInput(label: String, value: Int?, onValueChange: (Int?) -> Unit, theme: NavigationSettingsTheme, unit: String = "", placeholder: String = "", range: IntRange? = null, enabled: Boolean = true)

Numeric text input for an integer setting.

A null value clears the field to show placeholder. Out-of-range values are clamped to range when the field loses focus.

Parameters

label

Descriptive text shown to the left of the input.

value

Current value, or null when the field is empty.

onValueChange

Called with the parsed value (or null) on each change.

theme

Color and typography tokens.

unit

Optional unit string shown after the input (e.g. "mm").

placeholder

Hint text shown when value is null.

range

Optional clamping range applied on focus loss.

enabled

When false the field is visually dimmed and not interactive.