Skip to content

Scroll Area

Scroll container with themed scrollbars.

Installation

bun add @xerobi/ui
import { ScrollArea, ScrollBar } from "@xerobi/ui/scroll-area"

This component is client-side. In Astro, hydrate it with a client directive.

API reference

ScrollArea

Also accepts every prop of Base UI ScrollArea.

No props of its own.

ScrollBar

No props of its own.

Styling hooks: [data-slot="scroll-area"], [data-slot="scroll-area-viewport"], [data-slot="scroll-area-scrollbar"], [data-slot="scroll-area-thumb"].

Search documentation

Search pages, components and blocks.