# Cookie Consent 1

> Ultra minimal floating bar layout with concise policy text and primary accept button.

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

- Page, with a live preview: https://shadcn.exchange/r/paceui/marketing-cookie-consent-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/paceui/marketing-cookie-consent-1-light-04917784421c6c73.png
- Registry item: https://paceui.com/r/marketing-cookie-consent-1.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-1.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-1.tsx`

```tsx
import { Button } from "@/components/ui/button";
import { Card, CardAction, CardDescription, CardHeader } from "@/components/ui/card";

export function CookieConsent1() {
    return (
        <Card className="w-full">
            <CardHeader className="items-center gap-4 text-center sm:text-start">
                <CardDescription className="text-xs leading-relaxed sm:text-sm">
                    We use essential cookies to ensure our website functions properly. By continuing to browse, you
                    agree to our cookie policy.
                </CardDescription>
                <CardAction className="w-full shrink-0 max-sm:col-start-1 max-sm:row-start-2 max-sm:justify-self-stretch sm:w-auto">
                    <Button size="sm" className="w-full cursor-pointer sm:w-auto">
                        Accept Cookies
                    </Button>
                </CardAction>
            </CardHeader>
        </Card>
    );
}
```
