ScrollArea
layoutAugments native scroll functionality for custom, cross-browser styling.
Preview
Installation
npm install @launchapp/design-systemImport
import { ScrollArea, ScrollBar } from "@launchapp/design-system";Examples
Scroll Area
<ScrollArea className="h-[200px] w-[350px] rounded-md border p-4"> {Array.from({ length: 20 }).map((_, i) => ( <div key={i} className="text-sm py-1">Item {i + 1}</div> ))}</ScrollArea>Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | "auto" | "always" | "scroll" | "hover" | "hover" | Scroll visibility strategy. |
scrollHideDelay | number | 600 | Delay before scrollbar hides (ms). |
className | string | — | Additional CSS classes. |