Thumb

@Composable
fun Thumb(interactionSource: MutableInteractionSource, modifier: Modifier = Modifier, colors: SliderColors = colors(), enabled: Boolean = true, thumbSize: DpSize = ThumbSize)

The Default thumb for Slider and RangeSlider

Parameters

interactionSource

the MutableInteractionSource representing the stream of Interactions for this thumb. You can create and pass in your own remembered instance to observe

modifier

the Modifier to be applied to the thumb.

colors

SliderColors that will be used to resolve the colors used for this thumb in different states. See SliderDefaults.colors.

enabled

controls the enabled state of this slider. When false, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.

thumbSize

the size of the thumb.