Layout

Scroll Area

A scroll region with a slim scrollbar that looks the same across browsers.

ReactVueWeb Components
View in Storybook

Playground

Examples

<ScrollArea maxHeight={240}>…long content…</ScrollArea>

Props

Name Type Default Description
axis 'both' | 'x' | 'y' y Scroll axis. @default 'y'
maxHeight number | string Max block size before scrolling (px or any CSS length).
children ReactNode

Accessibility

  • Body/background contrast is ≥ 7:1 (AAA) in both light and dark.
  • Every interaction works with the keyboard alone.
  • The focus ring is always visible.
  • Respects prefers-reduced-motion and stops excessive motion.

Every component is designed to meet WCAG 2.1 AAA.