---
title: "ScrollbarDefaults"
description: "Contains the default values used by Modifier.scrollbar."
type: "object"
lastmod: "2026-05-20T01:13:53.338900Z"
---
## API Reference

> Source set: Common

```kotlin
object ScrollbarDefaults
```

Contains the default values used by [Modifier.scrollbar](/jetpack-compose/androidx.compose.material3/material3/composable-functions/scrollbar).

## Properties

### ThumbOpacity

> Source set: Common

```kotlin
val ThumbOpacity = 0.7f
```

Default opacity for the scrollbar thumb.

### ThumbFadeDurationMillis

> Source set: Common

```kotlin
val ThumbFadeDurationMillis: Int
```

Default duration in milliseconds for the fade animation.

### ThumbFadeDelayMillis

> Source set: Common

```kotlin
val ThumbFadeDelayMillis: Int
```

Default delay in milliseconds before the scrollbar fades out.

### thumbColor

> Source set: Common

```kotlin
val thumbColor: Color
```

Default color for the scrollbar thumb.

### Thickness

> Source set: Common

```kotlin
val Thickness: Dp
```

Default thickness for a scrollbar.

### ThumbMinLength

> Source set: Common

```kotlin
val ThumbMinLength: Dp
```

Default minimum height for the scrollbar thumb.

### ThumbMaxLengthFraction

> Source set: Common

```kotlin
val ThumbMaxLengthFraction: Float
```

Default maximum length for the scrollbar thumb as a fraction of the viewport length.

### MainAxisTrackInset

> Source set: Common

```kotlin
val MainAxisTrackInset: Dp
```

Default main axis inset for the scrollbar track.

### CrossAxisTrackInset

> Source set: Common

```kotlin
val CrossAxisTrackInset: Dp
```

Default cross axis inset for the scrollbar track.
