Components › Blocks
Cookie consent
A cookie banner with equal Accept and Reject buttons and a panel to choose each kind.
Installation
npx plankui@latest add cookie-consentUsage
import { CookieConsent } from "@/components/ui/cookie-consent";
<CookieConsent policyHref="/cookies" onDecide={(choice) => save(choice)} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| onDecide | (choice: { analytics, marketing }) => void | required | Called once with the choice; necessary cookies are always on. |
| policyHref | string | Link to the cookie policy. |