Skip to main content
The ScrollArea component provides a consistent, styled scrollbar experience across different browsers and operating systems. It supports both vertical and horizontal scrolling.

Usage

Scrollbar types

Horizontal scrolling

API reference

ScrollArea

'always' | 'hover' | 'scroll'
default:"hover"
Controls when the scrollbar is visible:
  • always: Scrollbar is always visible
  • hover: Scrollbar appears on hover
  • scroll: Scrollbar appears during scroll
string
Additional CSS class for the scroll area root.
ReactNode
The scrollable content.
CSSProperties
Inline styles for the scroll area. Use to set height and width constraints.