# P scroll area 2

> Horizontal scroll area

A shadcn/ui block from the [@coss](https://coss.com/ui) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/coss/p-scroll-area-2).

- Page, with a live preview: https://shadcn.exchange/r/coss/p-scroll-area-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/coss/p-scroll-area-2-light-de46b0c6b2301b06.png
- Registry item: https://coss.com/ui/r/p-scroll-area-2.json
- Categories: scroll area
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://coss.com/ui/r/p-scroll-area-2.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: `@coss/scroll-area`

## Files

### `registry/default/particles/p-scroll-area-2.tsx`

```tsx
import { ScrollArea } from "@/registry/default/ui/scroll-area";

export default function Particle() {
  return (
    <ScrollArea className="max-w-96 rounded-lg border">
      <div className="flex w-max gap-4 p-4">
        {Array.from({ length: 20 }).map((_, i) => (
          <div
            className="flex h-20 w-32 shrink-0 items-center justify-center rounded-md bg-muted"
            key={String(i)}
          >
            <span className="font-medium text-sm">Item {i + 1}</span>
          </div>
        ))}
      </div>
    </ScrollArea>
  );
}
```
