{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cookie-consent",
  "title": "Cookie consent",
  "description": "A cookie consent banner offering accept, reject, and preferences actions.",
  "registryDependencies": [
    "button",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/cookie-consent.tsx",
      "content": "import { Button } from '@/components/ui/button'\nimport { Icon } from '@/components/ui/icon'\n\n/** A cookie consent banner offering accept, reject, and preferences actions. */\nexport function CookieConsent() {\n  return (\n    <div className=\"flex w-card-xl items-start gap-3 rounded-xl bg-card p-4 text-foreground shadow-md ring-1 ring-foreground/10\">\n      <div className=\"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground\">\n        <Icon name=\"info\" className=\"size-icon-lg\" />\n      </div>\n      <div className=\"flex flex-col gap-3\">\n        <p className=\"text-sm text-muted-foreground\">\n          We use essential cookies to make Quill work, and optional analytics to improve it. You can\n          change your choice anytime.\n        </p>\n        <div className=\"flex flex-wrap gap-2\">\n          <Button size=\"sm\">Accept all</Button>\n          <Button size=\"sm\" variant=\"outline\">\n            Reject non-essential\n          </Button>\n          <Button size=\"sm\" variant=\"ghost\">\n            Preferences\n          </Button>\n        </div>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/cookie-consent.tsx"
    }
  ],
  "meta": {
    "intent": [
      "feedback"
    ],
    "use_when": "You need a compliance banner offering accept, reject, and preferences choices.",
    "not_for": "the message is informational only and doesn't require an explicit accept/reject decision → announcement-banner; the message is a local, in-page status, not a site-wide compliance notice → alerts"
  },
  "docs": "A cookie consent banner offering accept, reject, and preferences actions. Do: \"Reject non-essential\" gets the same one-click ease as \"Accept all\" — both are top-level buttons, not one button plus a buried settings link. Don't: Make rejecting cookies harder to find or reach than accepting them — that's a dark pattern, not a real choice. Use announcement-banner when the message is informational only and doesn't require an explicit accept/reject decision. Use alerts when the message is a local, in-page status, not a site-wide compliance notice.",
  "categories": [
    "feedback"
  ],
  "type": "registry:block"
}