ThemeSlider

fun ThemeSlider(value: Float, onValueChange: (Float) -> Unit, modifier: Modifier = Modifier, valueRange: ClosedFloatingPointRange<Float> = 0f..1f, steps: Int = 0, enabled: Boolean = true, label: String? = null, valueDescription: String? = null)

A full-width slider for one value in valueRange.

A bare slider only announces a percentage. Pass label to say what it controls and valueDescription to announce a meaningful value ("Timeout, 30 seconds"); both should be localized by the caller.

Parameters

steps

the number of discrete stops between the range's ends; 0 for a continuous slider.