Skip to main content
The ScrollArea component provides a scrollable container with customizable, accessible scrollbars.

Installation

Usage

Components

For simple usage, use the composed ScrollArea component. For advanced customization, use the individual components:

Props

ScrollArea (Composed)

string
Additional CSS classes.
ReactNode
Content to make scrollable.

ScrollAreaScrollbar

string
default:"vertical"
Scrollbar orientation. Options: vertical, horizontal

Examples

Basic Scroll Area

Horizontal Scrolling

Custom Scrollbar

Chat Messages

Accessibility

  • Built on @base-ui/react for accessibility
  • Keyboard scrolling support
  • Focus visible on viewport
  • Screen reader compatible
  • Auto-hiding scrollbars with hover/scroll visibility