Command Palette

Search for a command to run...

1.2k
Components
PreviousNext

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

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.