VerticalScrollBar

fun VerticalScrollBar(adapter: ScrollBarAdapter, modifier: Modifier = Modifier, reverseLayout: Boolean = false, trackPadding: PaddingValues = PaddingValues(0.dp), colors: ScrollBarColors = ScrollBarDefaults.scrollBarColors(), thumbWidth: Dp = ScrollBarDefaults.ThumbWidth, cornerRadius: Dp = ScrollBarDefaults.CornerRadius, thumbMinLength: Dp = ScrollBarDefaults.ThumbMinLength, endPadding: Dp = ScrollBarDefaults.EndPadding)

A vertical scrollbar.

Parameters

adapter

ScrollBarAdapter that communicates with the scrollable component.

modifier

The modifier to apply to this layout.

reverseLayout

Reverse the direction of scrolling and layout.

trackPadding

Padding applied to the track to skip content padding areas.

colors

The colors of the scrollbar.

thumbWidth

The width of the thumb.

cornerRadius

The corner radius. Dp.Unspecified defaults to half of thumbWidth.

thumbMinLength

The minimum length of the thumb.

endPadding

The padding from the end edge.