- Docs
- Components
- Scroll Area
Scroll Area
Augments native scroll functionality for custom, cross-browser styling.
Preview
Code
Installation
CLI
Manual
Anatomy
Single import
Multiple imports
Examples
Horizontal
Preview
Code
API Reference
Root
| Prop | Type | Default |
|---|---|---|
asChild | boolean | false |
type | enum | "hover" |
scrollHideDelay | number | 600 |
dir | enum | |
nonce | string |
Viewport
The viewport area of the scroll area.
| Prop | Type | Default |
|---|---|---|
asChild | boolean | false |
Scrollbar
The vertical scrollbar. Add a second Scrollbar with an orientation prop to enable horizontal scrolling.
| Prop | Type | Default |
|---|---|---|
asChild | boolean | false |
forceMount | boolean | |
orientation | enum | vertical |