# V scroll area 1

> Basic scroll area

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

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-scroll-area-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-scroll-area-1-light-438befc63f401a77.png
- Registry item: https://ui.cnippet.dev/r/v-scroll-area-1.json
- Categories: scroll area
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-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: `@cnippet/scroll-area`

## Files

### `registry/default/variants/v-scroll-area-1.tsx`

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

const tags = Array.from({ length: 50 }, (_, i) => `v1.0.0-alpha.${i}`);

export default function Particle() {
  return (
    <ScrollArea className="h-64 rounded-lg border">
      <div className="px-4 py-2">
        <h4 className="mb-2 font-medium text-sm">Tags</h4>
        <div className="flex flex-col gap-1">
          {tags.map((tag) => (
            <div className="text-sm" key={tag}>
              {tag}
            </div>
          ))}
        </div>
      </div>
    </ScrollArea>
  );
}
```
