Scroll container #
Scroll container with custom colored scrollbar. Useful in case you have long list.
Examples #
Default usage #
Color #
You can change color of scrollbar by passing color prop. Try it by choosing colors listed below.
Horizontal #
You can specify if scroll container has horizontal scroll in the same way as vertical one.
Size #
You are able to set scrollbar's size (width or height) via size prop (small, medium or large presets are available, px and rem values are also suitable).
RTL #
The rtl prop enables RTL-mode.
Props #
| Name | Description | Types | Default |
|---|---|---|---|
| color | Color of the component (theme string or |
|
|
| fontSizesConfig | Provide a set of sizes for fonts as a global component specific setting. |
|
|
| gradient | Adds a background gradient. |
|
|
| horizontal | Enables horizontal scrolling. |
|
|
| rtl | Moves scrollbar to the left side of the container (depends on |
|
|
| size | Specify size for component. |
|
|
| sizesConfig | Provide a set of sizes as a global component specific setting. |
|
|
| vertical | Enables vertical scrolling. |
|
|
Css Variables #
| Name | Default Value |
|---|---|
| --va-scroll-container-scrollbar-gradient-to | var(--va-background-primary) |





