Scroll Area

A scrolling region with macOS overlay scrollers that appear while you scroll.

@cupertinoui/scroll-areaBase UI Scroll Area Registry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/scroll-area

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<ScrollArea className="h-56">…</ScrollArea>

API Reference

Every part forwards the props of the underlying Base UI Scroll Area part. The props below are the ones CupertinoUI adds or changes.

ScrollArea / ScrollBar

PropTypeDescription
orientation"vertical" | "horizontal"
Default: "vertical"
ScrollBar's direction; add a horizontal one for wide content.
classNamestringExtra classes, merged with the component's own.