110k
New

Scroll Area

Augments native scroll functionality for custom, cross-browser styling.

Component scroll-area-demo not found in registry.

Installation

pnpm dlx createui@latest add scroll-area

Usage

import { ScrollArea } from "@/components/ui/scroll-area"
<ScrollArea className="h-[200px] w-[350px] rounded-md border p-4">
  Your scrollable content here.
</ScrollArea>

Examples

Horizontal

Use ScrollBar with orientation="horizontal" for horizontal scrolling.

Component scroll-area-horizontal-demo not found in registry.

API Reference

See the Radix UI Scroll Area documentation.