Skip to contentFacade Pro is $149 once during launch, then $199. Lifetime updates.
Facade
Browse the library

Components / Feedback

Cookie consent

Free

Floating consent card with Accept all, Reject and customizable Analytics and Marketing toggles.

View as Markdownlucide-reactmotion

Installation

$npx shadcn@latest add https://facadeui.com/r/cookie-consent.json

Usage

import { CookieConsent } from "@/components/facade/cookie-consent";

export default function Page() {
  return <CookieConsent />;
}

Props

CookieConsentProps is exported, so you can extend or wrap it. Every prop has a default; <CookieConsent /> renders the example above.

Props of CookieConsent
PropTypeDescription
onChange(consent: ConsentState, action: ConsentAction) => voidCalled whenever the visitor makes a choice.
openbooleanShow the card. Uncontrolled default: shown after `delay` unless a stored choice exists.
delaynumberDelay before the card appears, in ms.
storageKeystring | nulllocalStorage key to remember the choice. Set to null to disable persistence.
titlestring
descriptionstring
policyHrefstring
containedbooleanPosition absolute inside the nearest positioned parent instead of fixed to the viewport.
classNamestring

Ask your agent

With the Facade MCP server connected, this prompt is enough:

Add the Facade cookie consent to this page and adapt the copy to our business.