Scrollcomponent

Scroll({ children, ...props }: ScrollComponentProps): ReactElement
ParamType
propsScrollComponentProps
Props for the Scroll component — children plus scroll-axis variants. required
Return
ReactElement
A <div> element with the computed scroll class.

Wrap children in a scrollable container with horizontal and/or vertical scrolling enabled.

Examples

<Scroll horizontal>{wideContent}</Scroll>