Docs
Scroll Area
Scroll Area
Augments native scroll functionality for custom, cross-browser styling.
Preview
Installation
npx shadcn@latest add scroll-areaUsage
import { ScrollArea } from "@/components/ui/scroll-area"
<ScrollArea className="h-72 w-48 rounded-none border">
<div className="p-4">Content that scrolls.</div>
</ScrollArea>On This Page