2023-11-24 10:58:32 +00:00
|
|
|
# Scrollbar
|
|
|
|
|
|
|
|
Scrollbar is used for displaying custom scrollbar
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
```js
|
2023-12-05 16:52:30 +00:00
|
|
|
import {Scrollbar} from "@docspace/shared/components";
|
2023-11-24 10:58:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<Scrollbar>Some content</Scrollbar>
|
|
|
|
```
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ----------- | :------------: | :------: | :---------------------------------------------------------: | :----------: | -------------------- |
|
|
|
|
| `className` | `string` | - | - | - | Accepts class |
|
|
|
|
| `id` | `string` | - | - | - | Accepts id |
|
|
|
|
| `style` | `obj`, `array` | - | - | - | Accepts css style |
|
|
|
|
| `stype` | `string` | | `smallWhite`, `smallBlack`, `preMediumBlack`, `mediumBlack` | `smallBlack` | Scrollbar style type |
|