Package-level declarations

Functions

Link copied to clipboard
fun Slider(value: Float, startLabel: String, endLabel: String, onValueChange: (Float) -> Unit, modifier: Modifier = Modifier, label: String = "", interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onValueChangeFinished: () -> Unit = {}, sliderRange: ClosedFloatingPointRange<Float> = 0f..1f, @IntRange(from = 0) steps: Int = 0, stateDescription: (Float) -> String = { (round(it * 10) / 10).toString() })

Sliders provide a visual indication of adjustable content, where the user can increase or decrease the value by moving the handle along a horizontal track.