ReUI
Components

Scroll Area

Augments native scroll functionality for custom, cross-browser styling.

Installation

pnpm dlx shadcn@latest add https://reui.io/r/scroll-area.json

Examples

Default

Loading

API Reference

This component is built using Radix UI Scroll Area primitives. For detailed information, please visit the full API reference.

ScrollArea

This component is based on the ScrollArea.Root primitive and includes the following custom props:

PropTypeDefault
viewportRef React.Ref<HTMLDivElement>
viewportClassName string
className string

ScrollBar

This component is based on the ScrollArea.Scrollbar primitive and includes the following custom props:

PropTypeDefault
orientation enum "vertical"
className string