<div class='sourceset sourceset-android'>Android</div>

```kotlin
public object SliderDefaults
```

Defaults used by slider.

## Functions

<h2 id="decreaseicon-modifier-contentdescription">DecreaseIcon</h2>

```kotlin
@Composable
public fun DecreaseIcon(
    modifier: Modifier = Modifier,
    contentDescription: String = decreaseIconContentDescription,
): Unit
```

The recommended decrease icon.

#### Parameters

| | |
| --- | --- |
| modifier | Modifier to be applied to the decrease icon. |
| contentDescription | The content description for the decrease icon. |

<hr class="docs-overload-divider">

<h2 id="increaseicon-modifier-contentdescription">IncreaseIcon</h2>

```kotlin
@Composable
public fun IncreaseIcon(
    modifier: Modifier = Modifier,
    contentDescription: String = increaseIconContentDescription,
): Unit
```

The recommended increase icon.

#### Parameters

| | |
| --- | --- |
| modifier | Modifier to be applied to the increase icon. |
| contentDescription | The content description for the increase icon. |

<hr class="docs-overload-divider">

<h2 id="slidercolors">sliderColors</h2>

```kotlin
@Composable
public fun sliderColors(): SliderColors
```

Creates a [SliderColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/SliderColors) that represents the default background and content colors used in an
[Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider).

<hr class="docs-overload-divider">

<h2 id="slidercolors-containercolor-buttoniconcolor-selectedbarcolor-unselectedbarcolor-selectedbarseparatorcolor-unselectedbarseparatorcolor-disabledcontainercolor-disabledbuttoniconcolor-disabledselectedbarcolor-disabledunselectedbarcolor-disabledselectedbarseparatorcolor-disabledunselectedbarseparatorcolor">sliderColors</h2>

```kotlin
@Composable
public fun sliderColors(
    containerColor: Color = Color.Unspecified,
    buttonIconColor: Color = Color.Unspecified,
    selectedBarColor: Color = Color.Unspecified,
    unselectedBarColor: Color = Color.Unspecified,
    selectedBarSeparatorColor: Color = Color.Unspecified,
    unselectedBarSeparatorColor: Color = Color.Unspecified,
    disabledContainerColor: Color = Color.Unspecified,
    disabledButtonIconColor: Color = Color.Unspecified,
    disabledSelectedBarColor: Color = Color.Unspecified,
    disabledUnselectedBarColor: Color = Color.Unspecified,
    disabledSelectedBarSeparatorColor: Color = Color.Unspecified,
    disabledUnselectedBarSeparatorColor: Color = Color.Unspecified,
): SliderColors
```

Creates a [SliderColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/SliderColors) that represents the default background and content colors used in an
[Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider).

#### Parameters

| | |
| --- | --- |
| containerColor | The background color of this [Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider) when enabled |
| buttonIconColor | The color of the icon of buttons when enabled |
| selectedBarColor | The color of the progress bar when enabled |
| unselectedBarColor | The background color of the progress bar when enabled |
| selectedBarSeparatorColor | The color of separator between visible segments within the selected portion of the bar when enabled |
| unselectedBarSeparatorColor | The color of unselected separator between visible segments within the unselected portion of the bar when enabled |
| disabledContainerColor | The background color of this [Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider) when disabled |
| disabledButtonIconColor | The color of the icon of buttons when disabled |
| disabledSelectedBarColor | The color of the progress bar when disabled |
| disabledUnselectedBarColor | The background color of the progress bar when disabled |
| disabledSelectedBarSeparatorColor | The color of selected separator between visible segments when disabled |
| disabledUnselectedBarSeparatorColor | The color of unselected separator between visible segments when disabled |

<hr class="docs-overload-divider">

<h2 id="variantslidercolors">variantSliderColors</h2>

```kotlin
@Composable
public fun variantSliderColors(): SliderColors
```

Creates a [SliderColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/SliderColors) as an alternative to the default colors, providing a visual
indication of value changes within a [Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider).

Example of a slider uses [variantSliderColors](#variantslidercolors) when its value is different from the initial
value:

<hr class="docs-overload-divider">

<h2 id="variantslidercolors-containercolor-buttoniconcolor-selectedbarcolor-unselectedbarcolor-selectedbarseparatorcolor-unselectedbarseparatorcolor-disabledcontainercolor-disabledbuttoniconcolor-disabledselectedbarcolor-disabledunselectedbarcolor-disabledselectedbarseparatorcolor-disabledunselectedbarseparatorcolor">variantSliderColors</h2>

```kotlin
@Composable
public fun variantSliderColors(
    containerColor: Color = Color.Unspecified,
    buttonIconColor: Color = Color.Unspecified,
    selectedBarColor: Color = Color.Unspecified,
    unselectedBarColor: Color = Color.Unspecified,
    selectedBarSeparatorColor: Color = Color.Unspecified,
    unselectedBarSeparatorColor: Color = Color.Unspecified,
    disabledContainerColor: Color = Color.Unspecified,
    disabledButtonIconColor: Color = Color.Unspecified,
    disabledSelectedBarColor: Color = Color.Unspecified,
    disabledUnselectedBarColor: Color = Color.Unspecified,
    disabledSelectedBarSeparatorColor: Color = Color.Unspecified,
    disabledUnselectedBarSeparatorColor: Color = Color.Unspecified,
): SliderColors
```

Creates a [SliderColors](/jetpack-compose/androidx.wear.compose/compose-material3/classes/SliderColors) as an alternative to the default colors, providing a visual
indication of value changes within a [Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider).

Example of a slider uses [variantSliderColors](#variantslidercolors) when its value is different from the initial
value:

#### Parameters

| | |
| --- | --- |
| containerColor | The background color of this [Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider) when enabled |
| buttonIconColor | The color of the icon of buttons when enabled |
| selectedBarColor | The color of the progress bar when enabled |
| unselectedBarColor | The background color of the progress bar when enabled |
| selectedBarSeparatorColor | The color of separator between visible segments within the selected portion of the bar when enabled |
| unselectedBarSeparatorColor | The color of unselected separator between visible segments within the unselected portion of the bar when enabled |
| disabledContainerColor | The background color of this [Slider](/jetpack-compose/androidx.wear.compose/compose-material3/components/Slider) when disabled |
| disabledButtonIconColor | The color of the icon of buttons when disabled |
| disabledSelectedBarColor | The color of the progress bar when disabled |
| disabledUnselectedBarColor | The background color of the progress bar when disabled |
| disabledSelectedBarSeparatorColor | The color of selected separator between visible segments when disabled |
| disabledUnselectedBarSeparatorColor | The color of unselected separator between visible segments when disabled |