Consent Manager
A React component for managing user consent for cookies and tracking in Next.js applications.
"This is super cool, Full circle moment (the prototype for c15t actually used shadcn).
Would love to get this in our docs also and shared in our discord!"
— Christopher Burns, Creator of c15t.com
About
- Built on top of c15t.
- Default theme is customized to match shadcn/ui.
- For Next.js, but can be easily adapted to other frameworks following c15t's documentation.
Installation
pnpm dlx shadcn add @ncdai/consent-manager
Usage
Wrap your app with the ConsentManager component:
app/layout.tsx
import { ConsentManager } from "@/components/ncdai/consent-manager";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<ConsentManager>{children}</ConsentManager>
</body>
</html>
);
}For customization and advanced usage, see c15t's documentation.