# V preview card 9

> 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-9).

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

```tsx
import { ShoppingCartIcon, 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 (
    <p className="text-sm">
      We recommend the{" "}
      <PreviewCard>
        <PreviewCardTrigger className="cursor-pointer font-medium text-primary underline underline-offset-4">
          Arc Flow Pro Headphones
        </PreviewCardTrigger>
        <PreviewCardPopup>
          <div className="flex flex-col gap-3">
            <div className="h-28 w-full rounded-md bg-muted" />
            <div>
              <p className="font-semibold text-sm">Arc Flow Pro Headphones</p>
              <p className="mt-0.5 font-semibold text-lg">$249.00</p>
            </div>
            <div className="flex items-center gap-1 text-xs text-yellow-500">
              {Array.from({ length: 5 }).map((_, i) => (
                <StarIcon className="size-3 fill-current" key={i} />
              ))}
              <span className="text-muted-foreground">(412 reviews)</span>
            </div>
            <Button className="w-full" size="sm">
              <ShoppingCartIcon className="size-3.5" />
              Add to cart
            </Button>
          </div>
        </PreviewCardPopup>
      </PreviewCard>{" "}
      for remote work setups.
    </p>
  );
}
```
