KScrollbar
A scroll bar dom container with a unified style
Install
bash
pnpm add @ikun-ui/scrollbarbash
yarn add @ikun-ui/scrollbarbash
npm install @ikun-ui/scrollbarBasic usage
Customizable style
scrollbar supports partial style settings for tumb, bar, and track
Scrollbar Props
| Name | Type | Default | Description |
|---|---|---|---|
| css | string | string | Css content which will be appended to the style attribute. |
| trackBackground | string | transparent | Scrollbar track background color. |
| trackRadius | string | 20px | Scrollbar track radius. |
| width | string | 6px | Scrollbar width. |
| height | string | 6px | Scrollbar height. |
| thumbBackground | string | var(--ikun-light-800) | Thumb background color. |
| thumbRadius | string | 20px | Thumb background radius. |
| cls | string | - | Additional class for component |
| attrs | any | {} | Additional attributes |
Scrollbar Slots
| Name | Description |
|---|---|
| default | content of the container. |