Object

NonInteractiveScrollbarDefaults

Contains the default values used by Modifier.nonInteractiveScrollbar.

Source set: Common
public object NonInteractiveScrollbarDefaults

Contains the default values used by Modifier.nonInteractiveScrollbar.

Properties

ThumbOpacity

Source set: Common
public val ThumbOpacity: Float = 0.7f

Default opacity for the scrollbar thumb.

ThumbFadeDurationMillis

Source set: Common
public val ThumbFadeDurationMillis: Int = 250

Default duration in milliseconds for the fade animation.

ThumbFadeDelayMillis

Source set: Common
public val ThumbFadeDelayMillis: Int = 400

Default delay in milliseconds before the scrollbar fades out.

thumbColor

Source set: Common
public val thumbColor: Color

Default color for the scrollbar thumb.

Thickness

Source set: Common
public val Thickness: Dp = 4.dp

Default thickness for a scrollbar.

ThumbMinLength

Source set: Common
public val ThumbMinLength: Dp = 24.dp

Default minimum height for the scrollbar thumb.

ThumbMaxLengthFraction

Source set: Common
public val ThumbMaxLengthFraction: Float = 0.9f

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

MainAxisTrackInset

Source set: Common
public val MainAxisTrackInset: Dp = 2.dp

Default main axis inset for the scrollbar track.

CrossAxisTrackInset

Source set: Common
public val CrossAxisTrackInset: Dp = 0.dp

Default cross axis inset for the scrollbar track.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: