# Scroll area with scrollbar gutter

> Scroll area with scrollbar gutter

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-scroll-area-5
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-scroll-area-5-light-e3af5abac0e96e7e.png
- Registry item: https://reui.io/r/new-york-v4/c-scroll-area-5.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-5.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-5.tsx`

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

export function Pattern() {
  return (
    <ScrollArea className="rounded-2xl h-72 w-56 border data-has-overflow-x:py-2.5 data-has-overflow-y:px-2.5">
      <div className="flex w-full flex-col items-center gap-4 py-2">
        {Array.from({ length: 10 }).map((_, i) => (
          <div
            key={i}
            className="rounded-2xl relative h-36 w-full shrink-0 overflow-hidden border"
          >
            <img
              src={`https://picsum.photos/400/300?random=${i + 1}`}
              alt={`Image ${i + 1}`}
              className="h-full w-full object-cover"
            />
          </div>
        ))}
      </div>
    </ScrollArea>
  )
}
```
