Import
import { Scrollable } from 'styled-system/jsx'Usage
The Scrollable component provides an easy way to create scrollable containers
without having to worry about overflow styles.
Direction
Use vertical or horizontal to control the overflow scrolling direction.
Scrollbar visibility
You can control the visibility of the scrollbar using the hideScrollbar prop.
Props
The Scrollable component accepts the following utility props in addition to style and factory props:
| Prop | Type | Description |
|---|---|---|
direction | 'vertical' | 'horizontal' | Controls the overflow scrolling direction. |
hideScrollbar | boolean | Hides the scrollbar. |