# Cookie Consent 2

> Centered modal card with icon header, privacy copy, and stacked/inline decision buttons.

A shadcn/ui block from the [@paceui](https://paceui.com/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/paceui/marketing-cookie-consent-2).

- Page, with a live preview: https://shadcn.exchange/r/paceui/marketing-cookie-consent-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/paceui/marketing-cookie-consent-2-light-e4c034f0639416ef.png
- Registry item: https://paceui.com/r/marketing-cookie-consent-2.json
- Listed: 2026-10-21, source last changed 2026-10-21

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/paceui/marketing-cookie-consent-2.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: `card`, `button`

## Files

### `components/blocks/marketing/cookie-consent/cookie-consent-2.tsx`

```tsx
import { Cookie } from "lucide-react";

import { Button } from "@/components/ui/button";
import { Card, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";

export function CookieConsent2() {
    return (
        <Card className="w-full max-w-md text-center">
            <CardHeader className="items-center">
                <div className="bg-muted text-primary mb-2 flex size-12 items-center justify-center rounded-md">
                    <Cookie className="size-6" />
                </div>
                <CardTitle className="text-lg">We Value Your Privacy</CardTitle>
                <CardDescription>
                    We use cookies to enhance your browsing experience, serve personalized content, and analyze our site
                    traffic.
                </CardDescription>
            </CardHeader>
            <CardFooter className="flex-col gap-2 sm:flex-row">
                <Button variant="outline" className="w-full cursor-pointer sm:w-1/2">
                    Decline
                </Button>
                <Button className="w-full cursor-pointer sm:w-1/2">Accept All</Button>
            </CardFooter>
        </Card>
    );
}
```
