Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/scroll-area
Install the following dependencies:
pnpm add @base-ui/react
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { ScrollArea, ScrollBar } from "@/components/ui/pxl/scroll-area"<ScrollArea className="h-50 w-87.5 rounded-md border p-4"> Your scrollable content here.</ScrollArea>Composition
Section titled “Composition”Use the following composition to build a ScrollArea:
ScrollArea└── ScrollBarAPI Reference
Section titled “API Reference”See the Base UI Scroll Area documentation.