Components › Display

Scroll area

A keyboard-focusable region for scrolling lists or panels within a limited height.

Installation

npx plankui@latest add scroll-area

Usage

import { ScrollArea } from "@/components/ui/scroll-area";

<ScrollArea aria-label="Project activity" className="max-h-36">{activity}</ScrollArea>

API reference

PropTypeDefaultDescription
aria-labelstringrequiredAccessible name for the scroll region.
classNamestringOverride the default maximum height or style the region.
childrenReactNodeContent inside the scroll region.

View the source on GitHub