# V preview card 6

> NPM package preview

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

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

## Install

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

## Files

### `registry/default/variants/v-preview-card-6.tsx`

```tsx
import { GitForkIcon, StarIcon } from "lucide-react";
import { Button } from "@/registry/default/ui/button";
import {
  PreviewCard,
  PreviewCardPopup,
  PreviewCardTrigger,
} from "@/registry/default/ui/preview-card";

export default function Particle() {
  return (
    <div className="text-sm">
      Check out the source on{" "}
      <PreviewCard>
        <PreviewCardTrigger className="cursor-pointer font-medium text-primary underline underline-offset-4">
          GitHub
        </PreviewCardTrigger>
        <PreviewCardPopup>
          <div className="flex flex-col gap-3">
            <div>
              <p className="font-semibold text-sm">cnippet / ui-cnippet</p>
              <p className="mt-1 text-muted-foreground text-xs">
                Open-source component library built with Base UI and Tailwind
                CSS. Copy-paste ready for your next project.
              </p>
            </div>
            <div className="flex items-center gap-4 text-muted-foreground text-xs">
              <span className="flex items-center gap-1">
                <span
                  aria-hidden="true"
                  className="size-2 rounded-full bg-blue-500"
                />
                TypeScript
              </span>
              <span className="flex items-center gap-1">
                <StarIcon className="size-3" /> 2.1k
              </span>
              <span className="flex items-center gap-1">
                <GitForkIcon className="size-3" /> 184
              </span>
            </div>
            <Button className="w-full" size="sm" variant="outline">
              View repository
            </Button>
          </div>
        </PreviewCardPopup>
      </PreviewCard>
      .
    </div>
  );
}
```
