Consent Manager
Cookie and tracking consent banner for Next.js, built on c15t.
- Dependencies (1)
- Registry (1)
Features
Built on top of c15t.
- Theme customized to match shadcn/ui.
- Designed for Next.js, adaptable to other frameworks via c15t docs.
Installation
pnpm dlx shadcn@latest add @nrcode/consent-manager
Usage
Wrap your app with the ConsentManager component:
import { ConsentManager } from "@/components/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.
License and usage
- Free to use and modify in both personal and commercial projects.
- Attribution is appreciated but not required.
- Released under the MIT License.