Open Consent
Free forever. Zero lock-in.
Consent management, open and simple. GDPR-compliant cookie consent with Google Consent Mode v2 built-in. Install via shadcn/ui in seconds.
npx shadcn@latest add https://openconsent.dev/r/cookie-consent.jsonEverything you need
Built for developers who care about privacy compliance and user experience.
GDPR & CCPA Compliant
Granular consent categories with easy withdrawal and consent versioning.
Google Consent Mode v2
Built-in Google Consent Mode v2 support. Required for EU/EEA/UK traffic as of March 2024.
Script Management
Automatic loading and unloading of third-party scripts based on consent.
shadcn/ui Native
Built with shadcn/ui primitives - Button, Dialog, Switch, Card, and more.
TypeScript First
Fully typed with exported types for a great developer experience.
Full Traceability
Complete audit trail with configurable API endpoint for compliance records.
Simple to integrate
Wrap your app with the provider, add the banner component, and you're done. No complex configuration needed.
- One command installation via shadcn CLI
- Uses your existing shadcn/ui components
- Automatic localStorage persistence
- TypeScript support out of the box
import {
CookieConsentProvider,
CookieBanner,
} from "@/components/cookie-consent"
export default function App({ children }) {
return (
<CookieConsentProvider
config={{
consentVersion: "1.0.0",
privacyPolicyUrl: "/privacy",
}}
>
{children}
<CookieBanner />
</CookieConsentProvider>
)
}Built on shadcn/ui
Uses the components you already have. No additional dependencies required.
Ready to add cookie consent to your app?
Get started in seconds with the shadcn CLI. Full documentation available.