Skip to Content
ComponentsScrollArea

ScrollArea

ScrollArea hides native scrollbars and renders Windows 98 scrollbar chrome around overflowing content.

Props

PropTypeDefaultDescription
classNamestring-Sets dimensions and frame styling.
childrenReactNode-Scrollable content.

Examples

Scrollable list

  • Item 01
  • Item 02
  • Item 03
  • Item 04
  • Item 05
  • Item 06
  • Item 07
  • Item 08
  • Item 09
  • Item 10
  • Item 11
  • Item 12
  • Item 13
  • Item 14
  • Item 15
  • Item 16
  • Item 17
  • Item 18

ARIA

ScrollArea keeps the content in normal DOM order. Add roles and labels to the content when needed.

Keyboard

ScrollArea does not make the frame focusable. Keyboard scrolling depends on the focusable content you place inside it.

SSR

Scrollbars are measured after mount. Give the root a stable width and height to avoid layout shifts.

Last updated on