# SliderDefaults

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Slider.kt+class:androidx.compose.material3.SliderDefaults) Common/AllAndroid/JVM
- Cmn

  ```
  object SliderDefaults
  ```

*** ** * ** ***

Object to hold defaults used by `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)`

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#CenteredTrack(androidx.compose.material3.SliderState,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.SliderColors,kotlin.Function2,kotlin.Function3,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( sliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)?, drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, trackCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` The Default centered track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/VerticalSlider.composable#VerticalSlider(androidx.compose.material3.SliderState,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1,kotlin.Function1)` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Thumb(androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.Modifier,androidx.compose.material3.SliderColors,kotlin.Boolean,androidx.compose.ui.unit.DpSize)( interactionSource: https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/MutableInteractionSource, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, thumbSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize )` The Default thumb for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Thumb(androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Boolean,androidx.compose.ui.Modifier,androidx.compose.material3.SliderColors,kotlin.Boolean,androidx.compose.ui.unit.DpSize)( interactionSource: https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/MutableInteractionSource, isVertical: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, thumbSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize )` The Default thumb for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)`, `https://developer.android.com/reference/kotlin/androidx/compose/material3/VerticalSlider.composable#VerticalSlider(androidx.compose.material3.SliderState,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1,kotlin.Function1)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable [Track](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Track(androidx.compose.material3.SliderPositions,androidx.compose.ui.Modifier,androidx.compose.material3.SliderColors,kotlin.Boolean))( sliderPositions: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** Use version that supports slider state | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Track(androidx.compose.material3.RangeSliderState,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.SliderColors,kotlin.Function2,kotlin.Function3,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( rangeSliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)?, drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Track(androidx.compose.material3.SliderState,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.SliderColors,kotlin.Function2,kotlin.Function3,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( sliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)?, drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Track(androidx.compose.material3.RangeSliderState,androidx.compose.ui.unit.Dp,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.SliderColors,kotlin.Function2,kotlin.Function3,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( rangeSliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState, trackCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)?, drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Track(androidx.compose.material3.SliderState,androidx.compose.ui.unit.Dp,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.SliderColors,kotlin.Function2,kotlin.Function3,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( sliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState, trackCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors, drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)?, drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/VerticalSlider.composable#VerticalSlider(androidx.compose.material3.SliderState,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1,kotlin.Function1)` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()()` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that represents the different colors used in parts of the `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` in different states. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( thumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledThumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that represents the different colors used in parts of the `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` in different states. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#(androidx.compose.ui.graphics.drawscope.DrawScope).drawStopIndicator(androidx.compose.ui.geometry.Offset,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color)(offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` The Default stop indicator. | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#TickSize()` The default size for the ticks if steps are greater than 0. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#TrackStopIndicatorSize()` The default size for the stop indicator at the end of the track. | Cmn |

## Public functions

### CenteredTrack

Cmn

```
@Composable
fun CenteredTrack(
    sliderState: SliderState,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: SliderColors = colors(),
    drawStopIndicator: (DrawScope.(Offset) -> Unit)? = {
            drawStopIndicator(
                offset = it,
                color = colors.trackColor(enabled, active = true),
                size = TrackStopIndicatorSize,
            )
        },
    drawTick: DrawScope.(Offset, Color) -> Unit = { offset, color ->
            drawStopIndicator(offset = offset, color = color, size = TickSize)
        },
    thumbTrackGapSize: Dp = ThumbTrackGapSize,
    trackInsideCornerSize: Dp = TrackInsideCornerSize,
    trackCornerSize: Dp = Dp.Unspecified
): Unit
```

The Default centered track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/VerticalSlider.composable#VerticalSlider(androidx.compose.material3.SliderState,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1,kotlin.Function1)`

This track starts from the center of the slider.

| Parameters |
|---|---|
| `sliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState` which is used to obtain the current active track. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the track. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this track in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)? = { drawStopIndicator( offset = it, color = colors.trackColor(enabled, active = true), size = TrackStopIndicatorSize, ) }` | lambda that will be called to draw the stop indicator at the end of the track. |
| `drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html = { offset, color -> drawStopIndicator(offset = offset, color = color, size = TickSize) }` | lambda that will be called to draw the ticks if steps are greater than 0. |
| `thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = ThumbTrackGapSize` | size of the gap between the thumb and the track. |
| `trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = TrackInsideCornerSize` | size of the corners towards the thumb when a gap is set. |
| `trackCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = Dp.Unspecified` | size of the external corners. |

### Thumb

Cmn

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

The Default thumb for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)`

| Parameters |
|---|---|
| `interactionSource: https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/MutableInteractionSource` | the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/MutableInteractionSource` representing the stream of `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/Interaction`s for this thumb. You can create and pass in your own `remember`ed instance to observe |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the thumb. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this thumb in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize = ThumbSize` | the size of the thumb. |

### Thumb

Cmn

```
@Composable
fun Thumb(
    interactionSource: MutableInteractionSource,
    isVertical: Boolean,
    modifier: Modifier = Modifier,
    colors: SliderColors = colors(),
    enabled: Boolean = true,
    thumbSize: DpSize = if (isVertical) VerticalThumbSize else ThumbSize
): Unit
```

The Default thumb for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)`, `https://developer.android.com/reference/kotlin/androidx/compose/material3/VerticalSlider.composable#VerticalSlider(androidx.compose.material3.SliderState,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1,kotlin.Function1)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)`

| Parameters |
|---|---|
| `interactionSource: https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/MutableInteractionSource` | the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/MutableInteractionSource` representing the stream of `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/Interaction`s for this thumb. You can create and pass in your own `remember`ed instance to observe |
| `isVertical: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether the slider that this thumb is being used in is a `https://developer.android.com/reference/kotlin/androidx/compose/material3/VerticalSlider.composable#VerticalSlider(androidx.compose.material3.SliderState,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1,kotlin.Function1)`. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the thumb. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this thumb in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize = if (isVertical) VerticalThumbSize else ThumbSize` | the size of the thumb. |

### Track

Cmn

```
@Composable
fun [Track](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#Track(androidx.compose.material3.SliderPositions,androidx.compose.ui.Modifier,androidx.compose.material3.SliderColors,kotlin.Boolean))(
    sliderPositions: SliderPositions,
    modifier: Modifier = Modifier,
    colors: SliderColors = colors(),
    enabled: Boolean = true
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Use version that supports slider state

The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)`

| Parameters |
|---|---|
| `sliderPositions: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions` which is used to obtain the current active track and the tick positions if the slider is discrete. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the track. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this track in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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. |

### Track

Cmn

```
@Composable
fun Track(
    rangeSliderState: RangeSliderState,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: SliderColors = colors(),
    drawStopIndicator: (DrawScope.(Offset) -> Unit)? = {
            drawStopIndicator(
                offset = it,
                color = colors.trackColor(enabled, active = true),
                size = TrackStopIndicatorSize,
            )
        },
    drawTick: DrawScope.(Offset, Color) -> Unit = { offset, color ->
            drawStopIndicator(offset = offset, color = color, size = TickSize)
        },
    thumbTrackGapSize: Dp = ThumbTrackGapSize,
    trackInsideCornerSize: Dp = TrackInsideCornerSize
): Unit
```

The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)`

| Parameters |
|---|---|
| `rangeSliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState` which is used to obtain the current active track. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the track. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this track in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)? = { drawStopIndicator( offset = it, color = colors.trackColor(enabled, active = true), size = TrackStopIndicatorSize, ) }` | lambda that will be called to draw the stop indicator at the start/end of the track. |
| `drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html = { offset, color -> drawStopIndicator(offset = offset, color = color, size = TickSize) }` | lambda that will be called to draw the ticks if steps are greater than 0. |
| `thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = ThumbTrackGapSize` | size of the gap between the thumbs and the track. |
| `trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = TrackInsideCornerSize` | size of the corners towards the thumbs when a gap is set. |

### Track

Cmn

```
@Composable
fun Track(
    sliderState: SliderState,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: SliderColors = colors(),
    drawStopIndicator: (DrawScope.(Offset) -> Unit)? = {
            drawStopIndicator(
                offset = it,
                color = colors.trackColor(enabled, active = true),
                size = TrackStopIndicatorSize,
            )
        },
    drawTick: DrawScope.(Offset, Color) -> Unit = { offset, color ->
            drawStopIndicator(offset = offset, color = color, size = TickSize)
        },
    thumbTrackGapSize: Dp = ThumbTrackGapSize,
    trackInsideCornerSize: Dp = TrackInsideCornerSize
): Unit
```

The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)`

| Parameters |
|---|---|
| `sliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState` which is used to obtain the current active track. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the track. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this track in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)? = { drawStopIndicator( offset = it, color = colors.trackColor(enabled, active = true), size = TrackStopIndicatorSize, ) }` | lambda that will be called to draw the stop indicator at the end of the track. |
| `drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html = { offset, color -> drawStopIndicator(offset = offset, color = color, size = TickSize) }` | lambda that will be called to draw the ticks if steps are greater than 0. |
| `thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = ThumbTrackGapSize` | size of the gap between the thumb and the track. |
| `trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = TrackInsideCornerSize` | size of the corners towards the thumb when a gap is set. |

### Track

Cmn

```
@Composable
fun Track(
    rangeSliderState: RangeSliderState,
    trackCornerSize: Dp,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: SliderColors = colors(),
    drawStopIndicator: (DrawScope.(Offset) -> Unit)? = {
            drawStopIndicator(
                offset = it,
                color = colors.trackColor(enabled, active = true),
                size = TrackStopIndicatorSize,
            )
        },
    drawTick: DrawScope.(Offset, Color) -> Unit = { offset, color ->
            drawStopIndicator(offset = offset, color = color, size = TickSize)
        },
    thumbTrackGapSize: Dp = ThumbTrackGapSize,
    trackInsideCornerSize: Dp = TrackInsideCornerSize
): Unit
```

The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)`

| Parameters |
|---|---|
| `rangeSliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState` which is used to obtain the current active track. |
| `trackCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | size of the external corners. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the track. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this track in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)? = { drawStopIndicator( offset = it, color = colors.trackColor(enabled, active = true), size = TrackStopIndicatorSize, ) }` | lambda that will be called to draw the stop indicator at the start/end of the track. |
| `drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html = { offset, color -> drawStopIndicator(offset = offset, color = color, size = TickSize) }` | lambda that will be called to draw the ticks if steps are greater than 0. |
| `thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = ThumbTrackGapSize` | size of the gap between the thumbs and the track. |
| `trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = TrackInsideCornerSize` | size of the corners towards the thumbs when a gap is set. |

### Track

Cmn

```
@Composable
fun Track(
    sliderState: SliderState,
    trackCornerSize: Dp,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: SliderColors = colors(),
    drawStopIndicator: (DrawScope.(Offset) -> Unit)? = {
            drawStopIndicator(
                offset = it,
                color = colors.trackColor(enabled, active = true),
                size = TrackStopIndicatorSize,
            )
        },
    drawTick: DrawScope.(Offset, Color) -> Unit = { offset, color ->
            drawStopIndicator(offset = offset, color = color, size = TickSize)
        },
    thumbTrackGapSize: Dp = ThumbTrackGapSize,
    trackInsideCornerSize: Dp = TrackInsideCornerSize
): Unit
```

The Default track for `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/VerticalSlider.composable#VerticalSlider(androidx.compose.material3.SliderState,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Boolean,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1,kotlin.Function1)`

This track has a different corner treatment where the corner size decreases as the thumb gets closer.

| Parameters |
|---|---|
| `sliderState: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderState` which is used to obtain the current active track. |
| `trackCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | size of the external corners. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the track. |
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | 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. |
| `colors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors = colors()` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that will be used to resolve the colors used for this track in different states. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()`. |
| `drawStopIndicator: (https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)? = { drawStopIndicator( offset = it, color = colors.trackColor(enabled, active = true), size = TrackStopIndicatorSize, ) }` | lambda that will be called to draw the stop indicator at the end of the track. |
| `drawTick: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.(https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html = { offset, color -> drawStopIndicator(offset = offset, color = color, size = TickSize) }` | lambda that will be called to draw the ticks if steps are greater than 0. |
| `thumbTrackGapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = ThumbTrackGapSize` | size of the gap between the thumb and the track. |
| `trackInsideCornerSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = TrackInsideCornerSize` | size of the corners towards the thumb when a gap is set. |

### colors

Cmn

```
@Composable
fun colors(): SliderColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that represents the different colors used in parts of the `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` in different states.

### colors

Cmn

```
@Composable
fun colors(
    thumbColor: Color = Color.Unspecified,
    activeTrackColor: Color = Color.Unspecified,
    activeTickColor: Color = Color.Unspecified,
    inactiveTrackColor: Color = Color.Unspecified,
    inactiveTickColor: Color = Color.Unspecified,
    disabledThumbColor: Color = Color.Unspecified,
    disabledActiveTrackColor: Color = Color.Unspecified,
    disabledActiveTickColor: Color = Color.Unspecified,
    disabledInactiveTrackColor: Color = Color.Unspecified,
    disabledInactiveTickColor: Color = Color.Unspecified
): SliderColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` that represents the different colors used in parts of the `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` in different states.

For the name references below the words "active" and "inactive" are used. Active part of the slider is filled with progress, so if slider's progress is 30% out of 100%, left (or right in RTL) 30% of the track will be active, while the rest is inactive.

| Parameters |
|---|---|
| `thumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | thumb color when enabled |
| `activeTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | color of the track in the part that is "active", meaning that the thumb is ahead of it |
| `activeTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | colors to be used to draw tick marks on the active track, if `steps` is specified |
| `inactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | color of the track in the part that is "inactive", meaning that the thumb is before it |
| `inactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | colors to be used to draw tick marks on the inactive track, if `steps` are specified on the Slider is specified |
| `disabledThumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | thumb colors when disabled |
| `disabledActiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | color of the track in the "active" part when the Slider is disabled |
| `disabledActiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | colors to be used to draw tick marks on the active track when Slider is disabled and when `steps` are specified on it |
| `disabledInactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | color of the track in the "inactive" part when the Slider is disabled |
| `disabledInactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | colors to be used to draw tick marks on the inactive part of the track when Slider is disabled and when `steps` are specified on it |

### DrawScope.drawStopIndicator

Cmn Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Slider.kt+function:drawStopIndicator)

```
fun DrawScope.drawStopIndicator(offset: Offset, size: Dp, color: Color): Unit
```

The Default stop indicator.

| Parameters |
|---|---|
| `offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | the coordinate where the indicator is to be drawn. |
| `size: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | the size of the indicator. |
| `color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color of the indicator. |

## Public properties

### TickSize

Cmn

```
val TickSize: Dp
```

The default size for the ticks if steps are greater than 0.

### TrackStopIndicatorSize

Cmn

```
val TrackStopIndicatorSize: Dp
```

The default size for the stop indicator at the end of the track.