Components / Layout

ScrollArea macrolite

A scrolling region of bounded height or width.

Built from
Box
Children
many
Loading the renderer…
ScrollArea rendered by the React renderer on Web
Web React
ScrollArea rendered by the SwiftUI renderer on iOS
iOS SwiftUI
ScrollArea rendered by the Compose renderer on Android
Android Compose
ScrollArea rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-scroll-area, painted by each native renderer.

direction · vertical
direction · horizontal
direction · both
PropTypeDefaultDescription
directionvertical | horizontal | both"vertical"Which axis scrolls.
maxHeightnumber–Px it scrolls within; omit to fill the parent.
stylestyle–Extra Box styles merged over the region's own.

No events, no slots. Children: many.

Role
region
Semantics
region (scrollable, focusable when it overflows)
KeysAction
–Arrow keys, PageUp/PageDown, Home/End scroll while focused
Recipe parts
ScrollArea/root
Keyed by
:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme