Components
Scroll Area
Augments native scroll functionality for custom, cross-browser styling.
Installation
Install ReUI
Refer to the Installation Guide for detailed instructions on setting up ReUI dependencies in your project.
Install dependencies
npm install @radix-ui/react-scroll-area
Add component
Copy and paste the following code into your project’s components/ui/scroll-area.tsx
file.
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:
Prop | Type | Default |
---|---|---|
viewportRef | ||
viewportClassName | ||
className |
ScrollBar
This component is based on the ScrollArea.Scrollbar primitive and includes the following custom props:
Prop | Type | Default |
---|---|---|
orientation | ||
className |