# V preview card 11

> Basic preview card

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

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-preview-card-11
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-preview-card-11-light-8e5bffb660ca24be.png
- Registry item: https://ui.cnippet.dev/r/v-preview-card-11.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-11.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-11.tsx`

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

export function Pattern() {
  return (
    <p className="text-sm">
      Designed by{" "}
      <PreviewCard>
        <PreviewCardTrigger className="cursor-pointer font-medium underline decoration-dashed underline-offset-4">
          @sarah_designs
        </PreviewCardTrigger>
        <PreviewCardPopup>
          <div className="flex flex-col gap-3">
            <div className="flex items-center gap-3">
              <div className="flex size-10 shrink-0 items-center justify-center rounded-full bg-muted">
                <UserIcon
                  aria-hidden="true"
                  className="size-5 text-muted-foreground"
                />
              </div>
              <div>
                <p className="font-semibold text-sm">Sarah Kim</p>
                <p className="text-muted-foreground text-xs">@sarah_designs</p>
              </div>
            </div>
            <p className="text-muted-foreground text-sm">
              Senior product designer. Open to work. Based in San Francisco.
            </p>
            <div className="flex gap-4 text-muted-foreground text-xs">
              <span>
                <strong className="text-foreground">2.4k</strong> followers
              </span>
              <span>
                <strong className="text-foreground">312</strong> following
              </span>
            </div>
          </div>
        </PreviewCardPopup>
      </PreviewCard>{" "}
      for the launch.
    </p>
  );
}
```
