Components › Display
Scroll area
A keyboard-focusable region for scrolling lists or panels within a limited height.
Installation
npx plankui@latest add scroll-areaUsage
import { ScrollArea } from "@/components/ui/scroll-area";
<ScrollArea aria-label="Project activity" className="max-h-36">{activity}</ScrollArea>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| aria-label | string | required | Accessible name for the scroll region. |
| className | string | Override the default maximum height or style the region. | |
| children | ReactNode | Content inside the scroll region. |