All components

overlays

Cookie Consent

A consent banner that defaults to declining non-essential cookies and remembers the choice — no dark patterns, no pre-ticked boxes.

We use cookies to understand how the site is used.

AcceptDecline
bannerprivacyconsent

Install with the shadcn CLI

npx shadcn@latest add https://onthic.com/r/cookie-consent

Also needs these files

  • @/lib/click-ticksrc/lib/click-tick.ts

Included automatically by the CLI command and the prompt.

Usage

// Mount once, near the root. It shows itself only when no choice
// has been stored yet.
<CookieConsent />