- 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
ScrollArea.Root
| Prop | Type | Default |
|---|---|---|
className | string |
ScrollArea.Viewport
The viewport area of the scroll area.
| Prop | Type | Default |
|---|---|---|
scrollFade | boolean | false |
scrollbarGutter | boolean | false |
className | string |
ScrollArea.Scrollbar
The scrollbar track. Add a second Scrollbar with an orientation prop to enable horizontal scrolling.
| Prop | Type | Default |
|---|---|---|
orientation | enum | "vertical" |
className | string |
ScrollArea.Thumb
The draggable thumb element inside the scrollbar.
| Prop | Type | Default |
|---|---|---|
className | string |