Components
Scroll Area
A component that provides a scrollable area with custom scrollbars, built with Base UI components.
Loading
Installation
pnpm dlx shadcn@latest add @reui/scroll-area
API Reference
This component is built using Base UI Scroll Area primitives. For detailed information, please visit the full API reference.
ScrollArea
This component is based on the Base UI ScrollArea primitive and includes the following custom props:
Prop | Type | Default | Description |
---|---|---|---|
className | Additional CSS classes for the scroll area container. | ||
orientation | "vertical" | The orientation of the scroll area. |
ScrollBar
A custom scrollbar component that appears when content overflows.
Prop | Type | Default | Description |
---|---|---|---|
className | Additional CSS classes for the scrollbar. | ||
orientation | The orientation of the scrollbar. |