BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/lyminhnghia/consent-manager

Consent Manager

lyminhnghia/consent-manager
FreeComponent

Cookie and tracking consent banner for Next.js, built on c15t.

Install it

npx shadcn@latest add https://lyminhnghia.github.io/r/consent-manager.json

Source

src/registry/components/consent-manager/consent-manager.tsxlyminhnghia.github.io/r/consent-manager.json · first 6 KB
1import {
2 ConsentManagerDialog,
3 ConsentManagerProvider,
4 CookieBanner,
5} from "@c15t/nextjs"
6
7import { buttonVariants } from "@/components/ui/button"
8import { cn } from "@/lib/utils"
9
10export function ConsentManager({ children }: { children: React.ReactNode }) {
11 return (
12 <ConsentManagerProvider
13 options={{
14 mode: "offline",
15 consentCategories: ["necessary", "measurement"],
16 // ignoreGeoLocation: process.env.NODE_ENV === "development", // Useful for development to always view the banner.
17 }}
18 >
19 <CookieBanner
20 theme={{
21 "banner.card": {
22 noStyle: true,
23 className: cn(
24 "relative w-full max-w-(--banner-max-width) divide-y overflow-hidden rounded-2xl",
25 "bg-popover text-popover-foreground shadow-lg ring-1 ring-foreground/10 dark:ring-foreground/20"
26 ),
27 },
28 "banner.header.title": {
29 noStyle: true,
30 className: "text-base leading-none font-medium text-foreground",
31 },
32 "banner.header.description": {
33 noStyle: true,
34 className: "text-sm text-muted-foreground",
35 },
36 "banner.footer": {
37 style: {
38 "--banner-footer-background-color": "transparent",
39 "--banner-footer-background-color-dark": "transparent",
40 },
41 },
42 "banner.footer.reject-button": {
43 noStyle: true,
44 className: buttonVariants({ variant: "secondary" }),
45 },
46 "banner.footer.accept-button": {
47 noStyle: true,
48 className: buttonVariants({ variant: "secondary" }),
49 },
50 "banner.footer.customize-button": {
51 noStyle: true,
52 className: buttonVariants({ variant: "default" }),
53 },
54 }}
55 />
56
57 <ConsentManagerDialog
58 theme={{
59 "dialog.root": {
60 style: {
61 "--dialog-height": "100%",
62 "--dialog-font-family": "var(--font-sans)",
63
64 "--dialog-background-color": "var(--background)",
65 "--dialog-background-color-dark": "var(--background)",
66
67 "--dialog-border-width": "0",
68 "--dialog-border-color": "var(--border)",
69 "--dialog-border-color-dark": "var(--border)",
70
71 "--dialog-card-radius": "1rem",
72 "--dialog-card-shadow":
73 "0 0 0 1px var(--dialog-card-shadow-color)",
74// … truncated

What it pulls in

npm packages

  • @c15t/nextjs

Other registry items

  • button

Files it writes

  • src/registry/components/consent-manager/consent-manager.tsx

Facts

Registry
lyminhnghia
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

lyminhnghia.github.io lyminhnghia/lyminhnghia.github.io on GitHub Raw registry item This item as JSON

More from lyminhnghia

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Apple Hello Effectapple-hello-effectlyminhnghiaComponentsFree1 dep
chevrons-up-down-iconchevrons-up-down-iconlyminhnghiaComponentsFreeno deps
Code Block Commandcode-block-commandlyminhnghiaComponentsFree4 deps · 3 files
Copy Buttoncopy-buttonlyminhnghiaComponentsFree2 deps · 2 files
GitHub Starsgithub-starslyminhnghiaComponentsFreeno deps
Scroll Fade Effectscroll-fade-effectlyminhnghiaComponentsFreeno deps
Shimmering Textshimmering-textlyminhnghiaComponentsFree1 dep
Slide to Unlockslide-to-unlocklyminhnghiaComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex