Scrollbar
Custom scrollbar component, providing a better scrolling experience.
Basic Usage
Control the height of the scrolling area by setting the height attribute.
Scroll Snap
Combining with the ol-scroll-snap component, scroll snap effect can be achieved. Setting the snap attribute to both, x, or y enables scroll snap in both horizontal and vertical directions.
Scrollbar Attributes
| Attribute Name | Description | Type | Default Value |
|---|---|---|---|
| height | Height of the scrolling area | string | number | - |
| snap | Scroll snap direction, optional values are x, y, both | string | - |
ScrollSnap Attributes
| Attribute Name | Description | Type | Default Value |
|---|---|---|---|
| align | Alignment of scroll snap, optional values are start, center, end | string | center |
