# V card 9

> With Stacked depth Effect

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

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

## Install

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

## Files

### `registry/default/variants/v-card-9.tsx`

```tsx
import { Button } from "@/registry/default/ui/button";
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/registry/default/ui/card";

export function Pattern() {
  return (
    <div className="relative size-fit">
      {/* Card */}
      <Card className="relative z-1 w-full max-w-xs">
        <CardHeader>
          <CardTitle>Default Card</CardTitle>
          <CardDescription>
            This card uses the default size variant.
          </CardDescription>
        </CardHeader>
        <CardContent>
          <p>
            The card component supports a size prop that defaults to
            &quot;default&quot; for standard spacing and sizing.
          </p>
        </CardContent>
        <CardFooter>
          <Button className="w-full" variant="outline">
            Action
          </Button>
        </CardFooter>
      </Card>
      {/* Depth effect */}
      <div className="absolute inset-4 -bottom-3 z-0 rounded-lg border bg-card shadow-black/1 shadow-md" />
      <div className="absolute inset-2 -bottom-1.5 z-0 rounded-lg border bg-card shadow-black/1 shadow-md" />
    </div>
  );
}
```
