# Basic scroll area

> Basic scroll area

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-scroll-area-1).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-scroll-area-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-scroll-area-1-light-18ea3b650e2decbb.png
- Registry item: https://reui.io/r/new-york-v4/c-scroll-area-1.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-scroll-area-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `scroll-area`

## Files

### `c-scroll-area-1.tsx`

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

const tags = Array.from({ length: 30 }).map(
  (_, i, a) => `v1.2.0-beta.${a.length - i}`
)

export function Pattern() {
  return (
    <ScrollArea className="rounded-2xl h-72 w-48 border">
      <div className="p-4">
        <h4 className="mb-4 text-sm leading-none font-medium">Releases</h4>
        <div className="flex flex-col divide-y">
          {tags.map((tag, i) => (
            <div key={tag} className="py-2 text-sm">
              {tag}
            </div>
          ))}
        </div>
      </div>
    </ScrollArea>
  )
}
```
