9.2k

Scroll Area

A native scroll container with custom scrollbars.

API Reference

Installation

Usage

API Reference

ScrollArea

Root component. Styled wrapper for ScrollArea.Root from Base UI with custom scrollbar styling.

ScrollAreaViewport

Scrollable viewport container. Styled wrapper for ScrollArea.Viewport from Base UI.

ScrollAreaScrollbar

Scrollbar track. Styled wrapper for ScrollArea.Scrollbar from Base UI.

ScrollAreaThumb

Scrollbar thumb. Styled wrapper for ScrollArea.Thumb from Base UI.

ScrollAreaCorner

Corner element when both scrollbars are visible. Alias for ScrollArea.Corner from Base UI.

Examples

Scroll Fade

Use scrollFade to mask the viewport edges so content subtly fades in and out as you scroll, hinting that more content is available without adding extra UI chrome.

Horizontal Scroll

Scrollbar Gutter

Enable scrollbarGutter to reserve space for the scrollbar when overflow appears, preventing layout shifts as the bar shows or hides.

Both Scrollbars

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).