Server Component · 0 KB client JS

Scroll Area

A scroll container with scrollbars that match the theme. The scrollbars are the platform's own, restyled with CSS (::-webkit-scrollbar + scrollbar-width/scrollbar-color): no JavaScript thumb, no ResizeObserver, no synthetic scrolling. Keyboard scrolling, momentum and RTL stay native, and the component ships zero client JavaScript.

Release note 01

Release note 02

Release note 03

Release note 04

Release note 05

Release note 06

Release note 07

Release note 08

Release note 09

Release note 10

Release note 11

Release note 12

Release note 13

Release note 14

Release note 15

Release note 16

Release note 17

Release note 18

Release note 19

Release note 20

Import#

import { ScrollArea } from "astralis-ui";

Sizing#

Give it a height or maxHeight through style. Without one the area grows with its content and there is nothing to scroll.

Props#

Extends div props:

PropTypeDefaultDescription
direction"vertical" | "horizontal" | "both""vertical"Which axis scrolls.
hideScrollbarbooleanfalseHides the bar entirely; the content still scrolls.