ComponentClient component

Scroll Area

A native-scrolling viewport with refined custom scrollbars.

Installation

Preview

Release activity

Component update #121h
Component update #112h
Component update #103h
Component update #94h
Component update #85h
Component update #76h
Component update #67h
Component update #58h
Component update #49h
Component update #310h
Component update #211h
Component update #112h

Usage

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

<ScrollArea className="h-64">
  <div className="p-4">Scrollable content</div>
</ScrollArea>

API reference

PropTypeDefaultDescription
type"auto" | "always" | "scroll" | "hover""hover"Controls when custom scrollbars are visible.
scrollHideDelaynumber600Delay before an auto scrollbar hides.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.