## Scrollbar Used to replace the browser's native scrollbar. ### Basic usage :::demo Use `height` property to set the height of the scrollbar, or if not set, it adapts according to the parent container height. ```html

{{ item }}

``` ::: ### Horizontal scroll :::demo When the element width is greater than the scrollbar width, the horizontal scrollbar is displayed. ```html

{{ item }}

``` ::: ### Max height :::demo The scrollbar is displayed only when the element height exceeds the max height. ```html ``` ::: ### Scrollbar Attributes | Attribute | Description | Type | Accepted Values | Default | |------------- |---------------- |---------------- |---------------------- |-------- | | height | height of scrollbar | string / number | — | — | | max-height | max height of scrollbar | string / number | — | — | | native | whether to use the native scrollbar style | boolean | — | false | | wrap-style | style of warp container | string | — | — | | wrap-class |class of warp container | string | — | — | | view-style | style of view | string | — | — | | view-class | class of view | string | — | — | | noresize | do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance | boolean | — | false | | tag | element tag of the view | string | — | div | ### Events | Event Name | Description | Parameters | |---------- |-------- |---------- | | scroll | triggers when scrolling | distance of scrolling { scrollLeft, scrollTop }|