Cookie Banner
Cookie consent banner: accept all, reject all, or customize per-category preferences.
Copy a prompt for your AI coding tool with the source, dependencies and usage
Props
CookieBannerProps
Also accepts all props of Omit<React.ComponentProps<"div">, "title">
| Prop | Type | Default | Description |
|---|---|---|---|
| open* required | boolean | — | — |
| onOpenChange* required | (open: boolean) => void | — | — |
| onDecision | (preferences: CookiePreferences) => void | — | — |
| title | string | "We value your privacy" | — |
| description | string | "We use cookies to keep the site working and | — |
Install
$ npx shadcn@latest add https://chromotion.dev/r/cookie-banner.json