scrollbar
This modifier allows you to add a scrollbar to a scrollable composable. The scrollbar's appearance and behavior can be customized using the config
parameter.
Recommended to use verticalScrollWithScrollbar or horizontalScrollWithScrollbar for smooth behaviour. Use this modifier if customization is required.
Return
A modifier that adds a scrollbar to the composable.
Parameters
The scroll state that the scrollbar will be linked to.
The state of the scrollbar, including its position and visibility.
The orientation of the scrollbar (horizontal or vertical).
The configuration for the scrollbar's appearance and behavior.
Optional param to define the custom drawing for Scrollbar.
See also
This modifier allows you to add a scrollbar to a scrollable composable.
Recommended to use verticalScrollWithScrollbar or horizontalScrollWithScrollbar for smooth behaviour. Use this modifier if customization is required.
Return
A modifier that adds a scrollbar to the composable.
Parameters
The scroll state that the scrollbar will be linked to.
The state of the scrollbar, including its position and visibility.
The orientation of the scrollbar (horizontal or vertical).
If true, the scrollbar is always visible. Default is false (auto-hide).
Animation for auto-hiding the scrollbar. Default auto-hide animation if not specified.
If true, the scrollbar is draggable. Default is true.
To measure and draw the scrollbar. Provides ScrollbarLayoutScope with ScrollbarLayout info to submit measurements and draw the scrollbar.