Command Palette

Search for a command to run...

Scroll Area

A scrollable area with custom styled scrollbars. Built on Base UI ScrollArea primitive.

Installation

npx shadcn add scroll-area --registry https://ui.ch.sh/r

Usage

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

export default function Example() {
  return (
    <ScrollArea className="h-72 w-48 rounded-lg border">
      <div className="p-4">
        {/* content */}
      </div>
    </ScrollArea>
  )
}