> Documentation index: https://developer.android.com/reference/llms.txt

# InteractiveScrollbarDefaults

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/InteractiveScrollbar.kt+class:androidx.compose.material3.InteractiveScrollbarDefaults) Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02) Common/AllAndroid/JVM
- Cmn

  ```
  object InteractiveScrollbarDefaults
  ```

*** ** * ** ***

Contains the default values used by `Modifier.interactiveScrollbar`.

## Summary

| ### Public functions |
|---|---|---|
| `InteractiveScrollbarColors` | `@Composable colors()` Creates an `InteractiveScrollbarColors` that represents the default colors used in an interactive scrollbar. | Cmn |
| `InteractiveScrollbarColors` | `@Composable colors( thumbColor: Color, hoveredThumbColor: Color, pressedThumbColor: Color, draggedThumbColor: Color, trackColor: Color )` Creates an `InteractiveScrollbarColors` that represents the default colors used in an interactive scrollbar. | Cmn |

| ### Public properties |
|---|---|---|
| `Dp` | `CrossAxisTrackInset` Default cross axis inset for the scrollbar track. | Cmn |
| `Float` | `HoveredThumbOpacity` Alpha value applied to the scrollbar thumb when it is hovered. | Cmn |
| `Dp` | `MainAxisTrackInset` Default main axis inset for the scrollbar track. | Cmn |
| `Float` | `PressedThumbOpacity` Alpha value applied to the scrollbar thumb when it is pressed or dragged. | Cmn |
| `Dp` | `Thickness` Default thickness for an interactive scrollbar thumb. | Cmn |
| `Int` | `ThumbFadeDelayMillis` Default delay before the scrollbar fades out in milliseconds. | Cmn |
| `Int` | `ThumbFadeDurationMillis` Default duration of the fade animation in milliseconds. | Cmn |
| `Float` | `ThumbMaxLengthFraction` Default maximum length of the scrollbar thumb as a fraction of the track length. | Cmn |
| `Dp` | `ThumbMinLength` Default minimum length of the scrollbar thumb. | Cmn |
| `Float` | `ThumbOpacity` Alpha value applied to the scrollbar thumb when it is idle. | Cmn |

## Public functions

### colors

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

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

Creates an `InteractiveScrollbarColors` that represents the default colors used in an interactive scrollbar.

### colors

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

```
@Composable
fun colors(
    thumbColor: Color = Color.Unspecified,
    hoveredThumbColor: Color = Color.Unspecified,
    pressedThumbColor: Color = Color.Unspecified,
    draggedThumbColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified
): InteractiveScrollbarColors
```

Creates an `InteractiveScrollbarColors` that represents the default colors used in an interactive scrollbar.

| Parameters |
|---|---|
| `thumbColor: Color = Color.Unspecified` | the default color of the scrollbar thumb when idle. |
| `hoveredThumbColor: Color = Color.Unspecified` | the color of the scrollbar thumb when hovered. |
| `pressedThumbColor: Color = Color.Unspecified` | the color of the scrollbar thumb when pressed. |
| `draggedThumbColor: Color = Color.Unspecified` | the color of the scrollbar thumb when actively dragged. |
| `trackColor: Color = Color.Unspecified` | the color of the scrollbar track. |

## Public properties

### CrossAxisTrackInset

Cmn

```
val CrossAxisTrackInset: Dp
```

Default cross axis inset for the scrollbar track.

### HoveredThumbOpacity

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

```
val HoveredThumbOpacity: Float
```

Alpha value applied to the scrollbar thumb when it is hovered.

### MainAxisTrackInset

Cmn

```
val MainAxisTrackInset: Dp
```

Default main axis inset for the scrollbar track.

### PressedThumbOpacity

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

```
val PressedThumbOpacity: Float
```

Alpha value applied to the scrollbar thumb when it is pressed or dragged.

### Thickness

Cmn

```
val Thickness: Dp
```

Default thickness for an interactive scrollbar thumb.

### ThumbFadeDelayMillis

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

```
val ThumbFadeDelayMillis: Int
```

Default delay before the scrollbar fades out in milliseconds.

### ThumbFadeDurationMillis

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

```
val ThumbFadeDurationMillis: Int
```

Default duration of the fade animation in milliseconds.

### ThumbMaxLengthFraction

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

```
val ThumbMaxLengthFraction: Float
```

Default maximum length of the scrollbar thumb as a fraction of the track length.

### ThumbMinLength

Cmn

```
val ThumbMinLength: Dp
```

Default minimum length of the scrollbar thumb.

### ThumbOpacity

Cmn Added in [1.6.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3.md.txt#1.6.0-alpha02)

```
val ThumbOpacity: Float
```

Alpha value applied to the scrollbar thumb when it is idle.