1. Docs
  2. Components
  3. Scroll Area

Scroll Area

Augments native scroll functionality for custom, cross-browser styling.

Installation

Anatomy

Examples

Horizontal

API Reference

ScrollArea.Root

PropTypeDefault
className
string

ScrollArea.Viewport

The viewport area of the scroll area.

PropTypeDefault
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.

PropTypeDefault
orientation
enum
"vertical"
className
string

ScrollArea.Thumb

The draggable thumb element inside the scrollbar.

PropTypeDefault
className
string