ScrollArea

A scrollable container with custom styled scrollbars.

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical" | "both" | "none""both"Which scrollbars to display.
viewportRefReact.RefObject<HTMLDivElement>-Ref to access the viewport element.
hiddenboolean-Whether to hide the scrollbars.
classNamestring-Additional CSS classes to apply.