Scroll Area
Augments native scroll for custom, cross-browser scrollbar styling. Vertical bars sit on the inline end and adapt with writing direction.
Basic
A fixed-height region with a styled vertical scrollbar.
Installation
CLI
Composition
structure
Usage
scroll-area.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | On `ScrollArea` — size the root (e.g. `h-72 w-48`) so content can overflow. |
| orientation | "vertical" · "horizontal" | "vertical" | On `ScrollBar` — scrollbar axis. |
| type | "auto" · "always" · "scroll" · "hover" | "hover" | On `ScrollArea` — when the scrollbar is visible (Radix `type`). |