@c15t/nextjs 2.1.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/AGENTS.md +155 -0
  2. package/README.md +31 -15
  3. package/client/components/integrations.js +3 -0
  4. package/dist/components/integrations/index.cjs +1 -0
  5. package/dist/components/integrations/index.js +1 -0
  6. package/dist/headless.cjs +1 -1
  7. package/dist/index.cjs +1 -1
  8. package/dist/libs/browser-initial-data.cjs +1 -1
  9. package/dist/libs/initial-data.cjs +1 -1
  10. package/dist/styles.tw3.css +1 -1
  11. package/dist/version.cjs +1 -1
  12. package/dist/version.js +1 -1
  13. package/dist-types/components/integrations/index.d.ts +1 -0
  14. package/dist-types/libs/browser-initial-data.d.ts +1 -1
  15. package/dist-types/version.d.ts +1 -1
  16. package/docs/README.md +155 -73
  17. package/docs/{building-headless-components.md → frameworks/next/building-headless-components.md} +3 -1
  18. package/docs/{callbacks.md → frameworks/next/callbacks.md} +3 -1
  19. package/docs/{components → frameworks/next/components}/consent-banner.md +10 -21
  20. package/docs/{components → frameworks/next/components}/consent-dialog-link.md +8 -5
  21. package/docs/frameworks/next/components/consent-dialog-trigger.md +202 -0
  22. package/docs/{components → frameworks/next/components}/consent-dialog.md +7 -15
  23. package/docs/frameworks/next/components/consent-manager-provider.md +327 -0
  24. package/docs/{components → frameworks/next/components}/consent-widget.md +8 -6
  25. package/docs/{components → frameworks/next/components}/dev-tools.md +9 -6
  26. package/docs/{components → frameworks/next/components}/frame.md +8 -9
  27. package/docs/{concepts → frameworks/next/concepts}/client-modes.md +4 -2
  28. package/docs/{concepts → frameworks/next/concepts}/consent-categories.md +1 -0
  29. package/docs/{concepts → frameworks/next/concepts}/consent-models.md +1 -0
  30. package/docs/{concepts → frameworks/next/concepts}/cookie-management.md +3 -3
  31. package/docs/{concepts → frameworks/next/concepts}/glossary.md +1 -0
  32. package/docs/{concepts → frameworks/next/concepts}/initialization-flow.md +1 -0
  33. package/docs/{concepts → frameworks/next/concepts}/policy-packs.md +1 -0
  34. package/docs/{headless.md → frameworks/next/headless.md} +3 -1
  35. package/docs/{hooks → frameworks/next/hooks}/use-color-scheme.md +1 -0
  36. package/docs/{hooks → frameworks/next/hooks}/use-consent-manager/checking-consent.md +3 -1
  37. package/docs/{hooks → frameworks/next/hooks}/use-consent-manager/location-info.md +3 -1
  38. package/docs/frameworks/next/hooks/use-consent-manager/overview.md +185 -0
  39. package/docs/{hooks → frameworks/next/hooks}/use-consent-manager/setting-consent.md +3 -1
  40. package/docs/{hooks → frameworks/next/hooks}/use-draggable.md +3 -1
  41. package/docs/{hooks → frameworks/next/hooks}/use-focus-trap.md +1 -0
  42. package/docs/{hooks → frameworks/next/hooks}/use-reduced-motion.md +3 -1
  43. package/docs/{hooks → frameworks/next/hooks}/use-ssr-status.md +6 -5
  44. package/docs/{hooks → frameworks/next/hooks}/use-text-direction.md +1 -0
  45. package/docs/frameworks/next/hooks/use-translations.md +55 -0
  46. package/docs/{iab → frameworks/next/iab}/consent-banner.md +9 -12
  47. package/docs/{iab → frameworks/next/iab}/consent-dialog.md +9 -14
  48. package/docs/{iab → frameworks/next/iab}/overview.md +4 -2
  49. package/docs/{iab → frameworks/next/iab}/use-gvl-data.md +3 -2
  50. package/docs/{iframe-blocking.md → frameworks/next/iframe-blocking.md} +8 -9
  51. package/docs/{internationalization.md → frameworks/next/internationalization.md} +13 -3
  52. package/docs/{network-blocker.md → frameworks/next/network-blocker.md} +13 -51
  53. package/docs/{optimization.md → frameworks/next/optimization.md} +5 -4
  54. package/docs/{policy-packs.md → frameworks/next/policy-packs.md} +3 -1
  55. package/docs/{quickstart.md → frameworks/next/quickstart.md} +26 -42
  56. package/docs/{script-loader.md → frameworks/next/script-loader.md} +72 -90
  57. package/docs/{server-side.md → frameworks/next/server-side.md} +12 -15
  58. package/docs/{styling → frameworks/next/styling}/classnames.md +3 -1
  59. package/docs/{styling → frameworks/next/styling}/color-scheme.md +3 -1
  60. package/docs/frameworks/next/styling/css-variables.md +53 -0
  61. package/docs/frameworks/next/styling/overview.md +299 -0
  62. package/docs/frameworks/next/styling/slots.md +94 -0
  63. package/docs/{styling → frameworks/next/styling}/tailwind.md +3 -1
  64. package/docs/frameworks/next/styling/tokens.md +156 -0
  65. package/docs/{troubleshooting.md → frameworks/next/troubleshooting.md} +3 -1
  66. package/docs/integrations/adobe-analytics.md +160 -0
  67. package/docs/integrations/ahrefs-analytics.md +15 -82
  68. package/docs/integrations/amplitude.md +230 -0
  69. package/docs/integrations/building-integrations.md +15 -181
  70. package/docs/integrations/clearbit.md +130 -0
  71. package/docs/integrations/cloudflare-web-analytics.md +15 -83
  72. package/docs/integrations/crisp.md +13 -87
  73. package/docs/integrations/databuddy.md +16 -85
  74. package/docs/integrations/fathom-analytics.md +15 -86
  75. package/docs/integrations/google-maps.md +263 -0
  76. package/docs/integrations/google-tag-manager.md +18 -86
  77. package/docs/integrations/google-tag.md +15 -84
  78. package/docs/integrations/heap.md +219 -0
  79. package/docs/integrations/hightouch.md +199 -0
  80. package/docs/integrations/hotjar.md +15 -83
  81. package/docs/integrations/intercom.md +13 -83
  82. package/docs/integrations/linkedin-insights.md +15 -82
  83. package/docs/integrations/logrocket.md +175 -0
  84. package/docs/integrations/matomo-analytics.md +13 -88
  85. package/docs/integrations/meta-pixel.md +33 -316
  86. package/docs/integrations/microsoft-clarity.md +15 -83
  87. package/docs/integrations/microsoft-uet.md +16 -83
  88. package/docs/integrations/mixpanel-analytics.md +15 -83
  89. package/docs/integrations/overview.md +55 -6
  90. package/docs/integrations/pirsch.md +142 -0
  91. package/docs/integrations/plausible-analytics.md +14 -97
  92. package/docs/integrations/posthog.md +26 -98
  93. package/docs/integrations/promptwatch.md +16 -82
  94. package/docs/integrations/reddit-pixel.md +27 -122
  95. package/docs/integrations/rudderstack.md +271 -0
  96. package/docs/integrations/rybbit-analytics.md +15 -94
  97. package/docs/integrations/segment.md +15 -82
  98. package/docs/integrations/snapchat-pixel.md +21 -102
  99. package/docs/integrations/tiktok-pixel.md +13 -81
  100. package/docs/integrations/umami-analytics.md +16 -88
  101. package/docs/integrations/vercel-analytics.md +13 -85
  102. package/docs/integrations/x-pixel.md +27 -102
  103. package/docs/integrations/youtube.md +193 -0
  104. package/docs/shared/concepts/client-modes.md +103 -0
  105. package/docs/shared/concepts/consent-categories.md +41 -0
  106. package/docs/shared/concepts/consent-models.md +72 -0
  107. package/docs/shared/concepts/cookie-management.md +88 -0
  108. package/docs/shared/concepts/glossary.md +24 -0
  109. package/docs/shared/concepts/initialization-flow.md +105 -0
  110. package/docs/shared/concepts/policy-packs.md +225 -0
  111. package/docs/shared/react/components/consent-banner.md +242 -0
  112. package/docs/shared/react/components/consent-dialog-link.md +45 -0
  113. package/docs/shared/react/components/consent-dialog-trigger.md +185 -0
  114. package/docs/shared/react/components/consent-dialog.md +119 -0
  115. package/docs/shared/react/components/consent-manager-provider.md +225 -0
  116. package/docs/shared/react/components/consent-widget.md +121 -0
  117. package/docs/shared/react/components/dev-tools.md +81 -0
  118. package/docs/shared/react/components/frame.md +52 -0
  119. package/docs/shared/react/guides/building-headless-components.md +110 -0
  120. package/docs/shared/react/guides/callbacks.md +89 -0
  121. package/docs/shared/react/guides/headless.md +31 -0
  122. package/docs/shared/react/guides/iframe-blocking.md +65 -0
  123. package/docs/shared/react/guides/internationalization.md +123 -0
  124. package/docs/shared/react/guides/network-blocker.md +72 -0
  125. package/docs/shared/react/guides/optimization.md +44 -0
  126. package/docs/shared/react/guides/policy-packs.md +173 -0
  127. package/docs/shared/react/guides/script-loader.md +311 -0
  128. package/docs/shared/react/hooks/use-color-scheme.md +31 -0
  129. package/docs/shared/react/hooks/use-consent-manager/checking-consent.md +95 -0
  130. package/docs/shared/react/hooks/use-consent-manager/location-info.md +96 -0
  131. package/docs/shared/react/hooks/use-consent-manager/overview.md +74 -0
  132. package/docs/shared/react/hooks/use-consent-manager/setting-consent.md +93 -0
  133. package/docs/shared/react/hooks/use-draggable.md +30 -0
  134. package/docs/shared/react/hooks/use-focus-trap.md +20 -0
  135. package/docs/shared/react/hooks/use-reduced-motion.md +33 -0
  136. package/docs/shared/react/hooks/use-ssr-status.md +16 -0
  137. package/docs/shared/react/hooks/use-text-direction.md +38 -0
  138. package/docs/shared/react/hooks/use-translations.md +15 -0
  139. package/docs/shared/react/iab/consent-banner.md +60 -0
  140. package/docs/shared/react/iab/consent-dialog.md +76 -0
  141. package/docs/shared/react/iab/overview.md +80 -0
  142. package/docs/shared/react/iab/use-gvl-data.md +21 -0
  143. package/docs/shared/react/styling/classnames.md +93 -0
  144. package/docs/shared/react/styling/color-scheme.md +35 -0
  145. package/docs/shared/react/styling/css-variables.md +53 -0
  146. package/docs/shared/react/styling/overview.md +261 -0
  147. package/docs/shared/react/styling/slots.md +93 -0
  148. package/docs/shared/react/styling/stylesheet-entrypoint.md +8 -0
  149. package/docs/shared/react/styling/tailwind.md +88 -0
  150. package/docs/shared/react/styling/tokens.md +155 -0
  151. package/docs/shared/troubleshooting.md +82 -0
  152. package/package.json +19 -10
  153. package/readme.json +14 -8
  154. package/docs/ai-agents.md +0 -111
  155. package/docs/components/consent-dialog-trigger.md +0 -103
  156. package/docs/components/consent-manager-provider.md +0 -425
  157. package/docs/hooks/use-consent-manager/overview.md +0 -420
  158. package/docs/hooks/use-translations.md +0 -118
  159. package/docs/styling/css-variables.md +0 -92
  160. package/docs/styling/overview.md +0 -457
  161. package/docs/styling/slots.md +0 -128
  162. package/docs/styling/tokens.md +0 -216
package/docs/README.md CHANGED
@@ -1,73 +1,155 @@
1
- # c15t Next.js Docs
2
-
3
- Next.js-focused c15t docs for consent UI, server-side behavior, callbacks, and integrations.
4
-
5
- If you are changing consent flows, consent UI, script loading, server-side setup, or backend configuration in an app that uses this package, start here before editing code.
6
-
7
- ## Start Here
8
-
9
- - [Quickstart](./quickstart.md)
10
- - [Server Side](./server-side.md)
11
- - [Callbacks](./callbacks.md)
12
- - [Script Loader](./script-loader.md)
13
- - [Google Tag Manager](./integrations/google-tag-manager.md)
14
-
15
- ## Workflow Rules
16
-
17
- ### Server-Side Setup
18
-
19
- Use this when:
20
- - working on App Router or SSR consent initialization
21
- - connecting the provider to server-fetched consent data
22
- - deciding whether client-only setup is sufficient
23
-
24
- Prefer:
25
- - Prefer the documented server helpers and provider setup.
26
- - Use the server-side integration path before inventing custom cookie or init plumbing.
27
-
28
- Avoid:
29
- - Do not default to client-only initialization when the documented SSR flow already covers the use case.
30
-
31
- Read next:
32
- - [Quickstart](./quickstart.md)
33
- - [Server Side](./server-side.md)
34
-
35
- ### Styling
36
-
37
- Use this when:
38
- - customizing component appearance in a Next.js app
39
- - deciding how to override the default consent UI
40
-
41
- Prefer:
42
- - Prefer design tokens first.
43
- - If tokens are not enough, use component slots.
44
- - Then use CSS variables or `className` for targeted overrides.
45
-
46
- If that is not enough:
47
- - Use `noStyle` or headless only as a last resort.
48
-
49
- Avoid:
50
- - Do not rebuild the consent UI if the documented styling layers can express the design.
51
-
52
- Read next:
53
- - [Overview](./styling/overview.md)
54
- - [Tokens](./styling/tokens.md)
55
- - [Slots](./styling/slots.md)
56
-
57
- ### Scripts & Integrations
58
-
59
- Use this when:
60
- - wiring scripts through Next.js routes, layouts, or providers
61
- - adding analytics or advertising behind consent
62
-
63
- Prefer:
64
- - Prefer premade scripts from `@c15t/scripts/*`.
65
- - Start from the integration docs before wiring scripts through Next-specific code paths.
66
-
67
- Avoid:
68
- - Do not use custom script injection when a documented integration already exists.
69
-
70
- Read next:
71
- - [Script Loader](./script-loader.md)
72
- - [Google Tag Manager](./integrations/google-tag-manager.md)
73
- - [Meta Pixel](./integrations/meta-pixel.md)
1
+ # @c15t/nextjs
2
+
3
+ > Next.js consent management docs for c15t, including App Router setup, consent UI, SSR behavior, script loading, and integrations.
4
+
5
+ These docs ship inside the package so coding agents can read them offline. Open the topic file you need from the list below paths are relative to this file.
6
+
7
+ ## Frameworks
8
+
9
+ Install and configure c15t in JavaScript, React, and Next.js applications.
10
+
11
+ - [Building Headless Components](./frameworks/next/building-headless-components.md): Build policy-aware custom consent components in Next.js using the headless hooks and policy-pack tooling.
12
+ - [Callbacks](./frameworks/next/callbacks.md): React to consent lifecycle events - initialization, consent changes, errors, and revocation reloads.
13
+ - [ConsentBanner](./frameworks/next/components/consent-banner.md): A pre-built consent banner that appears when user consent is needed. Supports policy-aware layout, theming, and advanced composition when markup must change.
14
+ - [ConsentDialog](./frameworks/next/components/consent-dialog.md): A modal dialog where users can toggle individual consent categories.
15
+ - [ConsentDialogLink](./frameworks/next/components/consent-dialog-link.md): An inline trigger for opening the consent dialog from footers, legal pages, and account settings.
16
+ - [ConsentDialogTrigger](./frameworks/next/components/consent-dialog-trigger.md): A floating, draggable button that lets users re-open the consent dialog at any time.
17
+ - [ConsentManagerProvider](./frameworks/next/components/consent-manager-provider.md): The root provider component that initializes the consent system and makes consent state available to all child components.
18
+ - [ConsentWidget](./frameworks/next/components/consent-widget.md): An inline consent management widget for embedding in settings or privacy pages. Shows category toggles with accordion layout.
19
+ - [DevTools](./frameworks/next/components/dev-tools.md): A development tool for inspecting consent state, geolocation, loaded scripts, and consent events in real time.
20
+ - [Frame](./frameworks/next/components/frame.md): A consent-gated content wrapper - children only mount when the required consent category is granted.
21
+ - [Client Modes](./frameworks/next/concepts/client-modes.md): Choose how c15t connects to its backend - full hosted integration, offline-only, or bring your own backend.
22
+ - [Consent Categories](./frameworks/next/concepts/consent-categories.md): How c15t organizes tracking technologies into five consent categories.
23
+ - [Consent Models](./frameworks/next/concepts/consent-models.md): How c15t determines consent behavior based on legal jurisdiction.
24
+ - [Cookie Management](./frameworks/next/concepts/cookie-management.md): How c15t manages cookies through script, iframe, and network gating
25
+ - [Glossary](./frameworks/next/concepts/glossary.md): Key terms used throughout the c15t documentation.
26
+ - [Initialization Flow](./frameworks/next/concepts/initialization-flow.md): What happens from provider mount to first render — the full consent lifecycle.
27
+ - [Policy Packs](./frameworks/next/concepts/policy-packs.md): How c15t resolves regional consent policies and what a policy pack controls.
28
+ - [Headless Mode](./frameworks/next/headless.md): Build fully custom consent UI using only hooks - no pre-built components required.
29
+ - [useColorScheme](./frameworks/next/hooks/use-color-scheme.md): Manage light/dark mode preferences for consent components.
30
+ - [Checking Consent](./frameworks/next/hooks/use-consent-manager/checking-consent.md): Use has() for flexible consent checks with AND, OR, and NOT logic. Check if any consent exists with hasConsented().
31
+ - [Location Info](./frameworks/next/hooks/use-consent-manager/location-info.md): Access detected jurisdiction, country, and region. Override geolocation for testing.
32
+ - [useConsentManager](./frameworks/next/hooks/use-consent-manager/overview.md): The primary hook for accessing consent state and actions. Returns the full consent store including all state properties and action methods.
33
+ - [Setting Consent](./frameworks/next/hooks/use-consent-manager/setting-consent.md): Save, update, and reset consent preferences with setConsent(), setSelectedConsent(), and saveConsents().
34
+ - [useDraggable](./frameworks/next/hooks/use-draggable.md): Make an element draggable between viewport corners with snapping, persistence, and animation support.
35
+ - [useFocusTrap](./frameworks/next/hooks/use-focus-trap.md): Trap keyboard focus within a container for accessible modal dialogs.
36
+ - [useReducedMotion](./frameworks/next/hooks/use-reduced-motion.md): Detect the user's prefers-reduced-motion OS setting and reactively disable animations.
37
+ - [useSSRStatus](./frameworks/next/hooks/use-ssr-status.md): Check whether server-side rendered consent data was used during initialization.
38
+ - [useTextDirection](./frameworks/next/hooks/use-text-direction.md): Manage RTL/LTR text direction based on the active language for consent UI.
39
+ - [useTranslations](./frameworks/next/hooks/use-translations.md): Access the current language's translations for building custom consent UI.
40
+ - [IABConsentBanner](./frameworks/next/iab/consent-banner.md): An IAB TCF 2.3 compliant consent banner that displays partner count, purpose summaries, and legitimate interest notices.
41
+ - [IABConsentDialog](./frameworks/next/iab/consent-dialog.md): An IAB TCF 2.3 compliant preference center with tabbed purpose and vendor management.
42
+ - [IAB TCF 2.3](./frameworks/next/iab/overview.md): Implement IAB Transparency & Consent Framework 2.3 compliance for programmatic advertising in EU/EEA jurisdictions.
43
+ - [useGVLData (Internal)](./frameworks/next/iab/use-gvl-data.md): Status note for the internal GVL hook used by the built-in IAB dialog.
44
+ - [Iframe Blocking](./frameworks/next/iframe-blocking.md): Block embedded content (YouTube, social widgets, maps) until users grant consent for the appropriate category.
45
+ - [Internationalization](./frameworks/next/internationalization.md): Translate consent UI into 30+ languages with built-in translations, custom overrides, and automatic browser language detection.
46
+ - [Network Blocker](./frameworks/next/network-blocker.md): Block outgoing network requests to third-party domains until the user grants consent for the appropriate category.
47
+ - [Optimization](./frameworks/next/optimization.md): Improve c15t startup performance in Next.js with same-origin rewrites, static prefetching, and dynamic-route SSR.
48
+ - [Policy Packs](./frameworks/next/policy-packs.md): Configure regional consent policies in Next.js — hosted mode, presets, and offline fallback.
49
+ - [Quickstart](./frameworks/next/quickstart.md): Add consent management to your Next.js app in under 5 minutes.
50
+ - [Script Loader](./frameworks/next/script-loader.md): Gate third-party scripts behind consent in Next.js load Google Analytics, Meta Pixel, and other tracking scripts only when users grant permission.
51
+ - [Server-Side Data Fetching](./frameworks/next/server-side.md): Pre-fetch consent data in Server Components with fetchInitialData for dynamic Next.js routes.
52
+ - [Class Names](./frameworks/next/styling/classnames.md): Style consent components using className props and per-slot className targeting via the theme.
53
+ - [Color Scheme](./frameworks/next/styling/color-scheme.md): Support light mode, dark mode, and system preference detection in consent components.
54
+ - [CSS Variables](./frameworks/next/styling/css-variables.md): Reference for all --c15t-* CSS custom properties generated by the theme system.
55
+ - [Styling Overview](./frameworks/next/styling/overview.md): Five approaches for theming consent components — design tokens, component slots, CSS variables, className, and noStyle mode.
56
+ - [Component Slots](./frameworks/next/styling/slots.md): Target individual component parts with styles using the slot system - className strings or inline style objects.
57
+ - [Tailwind CSS](./frameworks/next/styling/tailwind.md): Use Tailwind CSS utility classes to style consent components via the slot system.
58
+ - [Design Tokens](./frameworks/next/styling/tokens.md): The six base token categories that control colors, typography, spacing, radius, shadows, and motion, plus optional dark-mode overrides.
59
+ - [Troubleshooting](./frameworks/next/troubleshooting.md): Solutions for common issues with @c15t/nextjs — provider errors, missing banners, consent persistence, and more.
60
+
61
+ ## Integrations
62
+
63
+ Connect analytics, advertising, maps, media, and other third-party tools behind consent.
64
+
65
+ - [Adobe Analytics](./integrations/adobe-analytics.md): Adobe Analytics loaded through an Adobe Experience Platform Data Collection Tags embed URL.
66
+ - [Ahrefs Analytics](./integrations/ahrefs-analytics.md): Cookieless web analytics from Ahrefs with a prebuilt helper that wires the project key into a c15t-managed script.
67
+ - [Amplitude](./integrations/amplitude.md): Load Amplitude Browser SDK 2 with c15t and gate product analytics behind measurement consent.
68
+ - [Build a Custom Script Integration](./integrations/building-integrations.md): Learn when to use a raw Script, when to build a reusable manifest-backed integration, and how to debug and test custom consent-aware scripts in c15t.
69
+ - [Clearbit](./integrations/clearbit.md): Visitor and company enrichment loaded with Clearbit's account-keyed tags.js snippet.
70
+ - [Cloudflare Web Analytics](./integrations/cloudflare-web-analytics.md): Cookieless analytics from Cloudflare with a prebuilt helper that serializes the beacon config into the `data-cf-beacon` attribute.
71
+ - [Crisp](./integrations/crisp.md): Load Crisp live chat with website ID, runtime, cookie, and session options.
72
+ - [Databuddy](./integrations/databuddy.md): Databuddy is a privacy-focused analytics platform that helps you understand user behavior and track events. It supports cookieless tracking and manages consent automatically through c15t's consent state synchronization.
73
+ - [Fathom Analytics](./integrations/fathom-analytics.md): Privacy-friendly cookieless analytics with a prebuilt helper that maps Fathom's data attributes into a c15t-managed script.
74
+ - [Google Maps](./integrations/google-maps.md): Render Google Maps only after consent with one shared Maps JavaScript API loader and independently managed map instances.
75
+ - [GA4 + Google Ads (gtag.js)](./integrations/google-tag.md): Send data to Google Analytics 4 and Google Ads with automatic Consent Mode v2 support.
76
+ - [Google Tag Manager](./integrations/google-tag-manager.md): Deploy and manage marketing tags centrally with automatic consent state synchronization.
77
+ - [Heap](./integrations/heap.md): Load Heap with c15t and gate autocapture product analytics behind measurement consent.
78
+ - [Hightouch](./integrations/hightouch.md): Load Hightouch Events with c15t and gate the browser SDK behind measurement consent.
79
+ - [Hotjar](./integrations/hotjar.md): Product analytics and behavior insights with a prebuilt helper that seeds Hotjar globals before loading the vendor bundle.
80
+ - [Intercom](./integrations/intercom.md): Bootstrap Intercom settings and load the messenger widget bundle.
81
+ - [LinkedIn Insights](./integrations/linkedin-insights.md): Track conversions and build matched audiences for LinkedIn advertising campaigns.
82
+ - [LogRocket](./integrations/logrocket.md): Session replay and monitoring loaded after measurement consent with LogRocket's browser SDK.
83
+ - [Matomo Analytics](./integrations/matomo-analytics.md): Load Matomo with c15t and keep Matomo's queue aligned with measurement consent.
84
+ - [Meta Pixel](./integrations/meta-pixel.md): Track conversions and build audiences for Facebook and Instagram advertising campaigns.
85
+ - [Microsoft Clarity](./integrations/microsoft-clarity.md): Session replay and behavior analytics with a prebuilt helper that keeps Clarity consent synchronized with c15t measurement state.
86
+ - [Microsoft UET](./integrations/microsoft-uet.md): Track conversions and measure performance for Microsoft Advertising and Bing Ads.
87
+ - [Mixpanel Analytics](./integrations/mixpanel-analytics.md): Load Mixpanel with c15t and let Mixpanel's own opt-in and opt-out APIs follow measurement consent.
88
+ - [Integrations](./integrations/overview.md): Load analytics, pixels, tag managers, and widgets through c15t so consent state controls when they run, update, and appear in your consent UI.
89
+ - [Pirsch](./integrations/pirsch.md): Privacy-friendly, cookieless analytics loaded with Pirsch's fixed script id and identification-code attributes.
90
+ - [Plausible Analytics](./integrations/plausible-analytics.md): Privacy-friendly cookieless analytics with a prebuilt helper that preserves Plausible's queue bootstrap and loader attributes.
91
+ - [PostHog](./integrations/posthog.md): PostHog is an open-source product analytics platform for tracking user behavior, session replays, feature flags, and A/B testing. It supports cookieless tracking, allowing analytics to continue even without cookie consent.
92
+ - [Promptwatch](./integrations/promptwatch.md): Promptwatch analyzes traffic on your site for Artificial Intelligence (AI) traffic and usage insights. Data is stored in the EU without user-identifiable information.
93
+ - [Reddit Pixel](./integrations/reddit-pixel.md): Track conversions and build retargeting audiences for Reddit advertising campaigns.
94
+ - [RudderStack](./integrations/rudderstack.md): Load RudderStack's JavaScript SDK with c15t and gate the browser SDK behind measurement consent.
95
+ - [Rybbit Analytics](./integrations/rybbit-analytics.md): Privacy-friendly analytics with script-tag configuration via Rybbit's data attributes.
96
+ - [Segment](./integrations/segment.md): Load Segment Analytics.js with c15t and gate it behind measurement consent.
97
+ - [Snapchat Pixel](./integrations/snapchat-pixel.md): Measure Snapchat ad performance and build remarketing audiences with a prebuilt pixel helper.
98
+ - [TikTok Pixel](./integrations/tiktok-pixel.md): Measure ad performance and build audiences for TikTok advertising campaigns.
99
+ - [Umami Analytics](./integrations/umami-analytics.md): Open-source, cookieless analytics with a prebuilt helper that maps Umami's data attributes into a c15t-managed script.
100
+ - [Vercel Analytics](./integrations/vercel-analytics.md): Bootstrap Vercel Analytics with a declarative queue and script attributes.
101
+ - [X Pixel (Twitter Pixel)](./integrations/x-pixel.md): Track conversions and build audiences for advertising campaigns on X (formerly Twitter).
102
+ - [YouTube](./integrations/youtube.md): Keep YouTube iframes unmounted until consent with a privacy-enhanced, lazy-loaded React or Next.js embed.
103
+
104
+ ## Reference
105
+
106
+ Concepts, legal templates, open-source policies, and contributor documentation.
107
+
108
+ - [Client Modes](./shared/concepts/client-modes.md): Reference page for client modes.
109
+ - [Consent Categories](./shared/concepts/consent-categories.md): Reference page for consent categories.
110
+ - [Consent Models](./shared/concepts/consent-models.md): Reference page for consent models.
111
+ - [Cookie Management](./shared/concepts/cookie-management.md): Reference page for cookie management.
112
+ - [Glossary](./shared/concepts/glossary.md): Reference page for glossary.
113
+ - [Initialization Flow](./shared/concepts/initialization-flow.md): Reference page for initialization flow.
114
+ - [Policy Packs](./shared/concepts/policy-packs.md): Reference page for policy packs.
115
+ - [Consent Banner](./shared/react/components/consent-banner.md): Reference page for consent banner.
116
+ - [Consent Dialog](./shared/react/components/consent-dialog.md): Reference page for consent dialog.
117
+ - [Consent Dialog Link](./shared/react/components/consent-dialog-link.md): Reference page for consent dialog link.
118
+ - [Consent Dialog Trigger](./shared/react/components/consent-dialog-trigger.md): Reference page for consent dialog trigger.
119
+ - [Consent Manager Provider](./shared/react/components/consent-manager-provider.md): Reference page for consent manager provider.
120
+ - [Consent Widget](./shared/react/components/consent-widget.md): Reference page for consent widget.
121
+ - [Dev Tools](./shared/react/components/dev-tools.md): Reference page for dev tools.
122
+ - [Frame](./shared/react/components/frame.md): Reference page for frame.
123
+ - [Building Headless Components](./shared/react/guides/building-headless-components.md): Reference page for building headless components.
124
+ - [Callbacks](./shared/react/guides/callbacks.md): Reference page for callbacks.
125
+ - [Headless](./shared/react/guides/headless.md): Reference page for headless.
126
+ - [Iframe Blocking](./shared/react/guides/iframe-blocking.md): Reference page for iframe blocking.
127
+ - [Internationalization](./shared/react/guides/internationalization.md): Reference page for internationalization.
128
+ - [Network Blocker](./shared/react/guides/network-blocker.md): Reference page for network blocker.
129
+ - [Optimization](./shared/react/guides/optimization.md): Reference page for optimization.
130
+ - [Policy Packs](./shared/react/guides/policy-packs.md): Reference page for policy packs.
131
+ - [Script Loader](./shared/react/guides/script-loader.md): Reference page for script loader.
132
+ - [Use Color Scheme](./shared/react/hooks/use-color-scheme.md): Reference page for use color scheme.
133
+ - [Checking Consent](./shared/react/hooks/use-consent-manager/checking-consent.md): Reference page for checking consent.
134
+ - [Location Info](./shared/react/hooks/use-consent-manager/location-info.md): Reference page for location info.
135
+ - [Overview](./shared/react/hooks/use-consent-manager/overview.md): Reference page for overview.
136
+ - [Setting Consent](./shared/react/hooks/use-consent-manager/setting-consent.md): Reference page for setting consent.
137
+ - [Use Draggable](./shared/react/hooks/use-draggable.md): Reference page for use draggable.
138
+ - [Use Focus Trap](./shared/react/hooks/use-focus-trap.md): Reference page for use focus trap.
139
+ - [Use Reduced Motion](./shared/react/hooks/use-reduced-motion.md): Reference page for use reduced motion.
140
+ - [Use SSR Status](./shared/react/hooks/use-ssr-status.md): Reference page for use ssr status.
141
+ - [Use Text Direction](./shared/react/hooks/use-text-direction.md): Reference page for use text direction.
142
+ - [Use Translations](./shared/react/hooks/use-translations.md): Reference page for use translations.
143
+ - [Consent Banner](./shared/react/iab/consent-banner.md): Reference page for consent banner.
144
+ - [Consent Dialog](./shared/react/iab/consent-dialog.md): Reference page for consent dialog.
145
+ - [Overview](./shared/react/iab/overview.md): Reference page for overview.
146
+ - [Use GVL Data](./shared/react/iab/use-gvl-data.md): Reference page for use gvl data.
147
+ - [Classnames](./shared/react/styling/classnames.md): Reference page for classnames.
148
+ - [Color Scheme](./shared/react/styling/color-scheme.md): Reference page for color scheme.
149
+ - [CSS Variables](./shared/react/styling/css-variables.md): Reference page for css variables.
150
+ - [Overview](./shared/react/styling/overview.md): Reference page for overview.
151
+ - [Slots](./shared/react/styling/slots.md): Reference page for slots.
152
+ - [Stylesheet Entrypoint](./shared/react/styling/stylesheet-entrypoint.md): Reference page for stylesheet entrypoint.
153
+ - [Tailwind](./shared/react/styling/tailwind.md): Reference page for tailwind.
154
+ - [Tokens](./shared/react/styling/tokens.md): Reference page for tokens.
155
+ - [Troubleshooting](./shared/troubleshooting.md): Reference page for troubleshooting.
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  title: Building Headless Components
3
- description: Build policy-aware custom consent components in Next.js using the headless hooks and policy-pack tooling.
3
+ description: Build policy-aware custom consent components in Next.js using the
4
+ headless hooks and policy-pack tooling.
5
+ group: frameworks
4
6
  ---
5
7
  Building custom consent UI is easier now because c15t exposes multiple layers of policy-aware primitives instead of forcing you to reconstruct banner rules by hand.
6
8
 
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  title: Callbacks
3
- description: React to consent lifecycle events - initialization, consent changes, errors, and revocation reloads.
3
+ description: React to consent lifecycle events - initialization, consent
4
+ changes, errors, and revocation reloads.
5
+ group: frameworks
4
6
  ---
5
7
  Callbacks let you run custom code at key points in the consent lifecycle. Define them in the provider or runtime `callbacks` option, or register them dynamically after initialization.
6
8
 
@@ -1,6 +1,9 @@
1
1
  ---
2
2
  title: ConsentBanner
3
- description: A pre-built consent banner that appears when user consent is needed. Supports policy-aware layout, theming, and advanced composition when markup must change.
3
+ description: A pre-built consent banner that appears when user consent is
4
+ needed. Supports policy-aware layout, theming, and advanced composition when
5
+ markup must change.
6
+ group: frameworks
4
7
  ---
5
8
  `ConsentBanner` is a ready-to-use consent banner that appears automatically in **opt-in jurisdictions** (like GDPR) where explicit consent is required before tracking. In opt-out jurisdictions (like CCPA), the banner won't appear — users get an opt-out mechanism instead. It includes reject, accept, and customize buttons with configurable layout.
6
9
 
@@ -247,23 +250,9 @@ If you only need styling changes, stay with tokens and slots instead of rebuildi
247
250
 
248
251
  ## Props
249
252
 
250
- ### ConsentBannerProps
251
-
252
- |Property|Type|Description|Default|Required|
253
- |:--|:--|:--|:--|:--:|
254
- |noStyle|boolean \|undefined|When true, removes all default styling from the component|false|Optional|
255
- |title|ReactNode|Content to display as the banner's title|undefined|Optional|
256
- |description|ReactNode|Content to display as the banner's description|undefined|Optional|
257
- |rejectButtonText|ReactNode|Content to display on the reject button|undefined|Optional|
258
- |customizeButtonText|ReactNode|Content to display on the customize button|undefined|Optional|
259
- |acceptButtonText|ReactNode|Content to display on the accept button|undefined|Optional|
260
- |scrollLock|boolean \|undefined|When true, the consent banner will lock the scroll of the page|false|Optional|
261
- |trapFocus|boolean \|undefined|When true, the consent banner will trap focus|true|Optional|
262
- |disableAnimation|boolean \|undefined|When true, disables the entrance/exit animations|false|Optional|
263
- |legalLinks|(keyof LegalLinksTranslations)\[] \|null \|undefined|Controls which legal links to display. Options: \`undefined\` (default): Shows all available legal links; \`null\`: Explicitly hides all legal links; Array of keys: Shows only the specified legal links|-|Optional|
264
- |hideBranding|boolean \|undefined|When true, hides the branding tag on the banner.|false|Optional|
265
- |layout|ConsentBannerLayout \|undefined|Defines the layout of buttons in the footer. Allows reordering and grouping of buttons.|-|Optional|
266
- |direction|PolicyUiActionDirection \|undefined|Defines how footer button groups flow.|-|Optional|
267
- |primaryButton|ConsentBannerButton \|undefined|Specifies which button(s) should be highlighted as the primary action.|-|Optional|
268
- |models|Model \|undefined|Which consent models this banner responds to.|\['opt-in']|Optional|
269
- |uiSource|string \|undefined|Override the UI source identifier sent with consent API calls.|'banner'|Optional|
253
+ |Property|Value|
254
+ |:--|:--|
255
+ |Type Name|\`ConsentBannerProps\`|
256
+ |Source Path|\`./packages/react/src/components/consent-banner/consent-banner.tsx\`|
257
+
258
+ \*ExtractedTypeTable: Could not extract "ConsentBannerProps" from "./packages/react/src/components/consent-banner/consent-banner.tsx" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  title: ConsentDialogLink
3
- description: An inline trigger for opening the consent dialog from footers, legal pages, and account settings.
3
+ description: An inline trigger for opening the consent dialog from footers,
4
+ legal pages, and account settings.
5
+ group: frameworks
4
6
  ---
5
7
  `ConsentDialogLink` is an inline trigger for opening the consent dialog from places like site footers, legal pages, or account settings. It is unstyled by default, so it inherits your app's typography and link/button styles.
6
8
 
@@ -52,8 +54,9 @@ The component defaults to `noStyle={true}`. Set it to `false` if you want c15t b
52
54
 
53
55
  ## Props
54
56
 
55
- ### ConsentDialogLinkProps
57
+ |Property|Value|
58
+ |:--|:--|
59
+ |Type Name|\`ConsentDialogLinkProps\`|
60
+ |Source Path|\`./packages/react/src/components/consent-preferences-link/consent-preferences-link.tsx\`|
56
61
 
57
- |Property|Type|Description|Default|Required|
58
- |:--|:--|:--|:--|:--:|
59
- |children|ReactNode|Custom trigger content, for example "Your privacy settings" or "Manage preferences".|-|✅ Required|
62
+ \*ExtractedTypeTable: Could not extract "ConsentDialogLinkProps" from "./packages/react/src/components/consent-preferences-link/consent-preferences-link.tsx" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
@@ -0,0 +1,202 @@
1
+ ---
2
+ title: ConsentDialogTrigger
3
+ description: A floating, draggable button that lets users re-open the consent
4
+ dialog at any time.
5
+ group: frameworks
6
+ ---
7
+ `ConsentDialogTrigger` is a floating button that opens the consent dialog when clicked. Users can drag it to any corner of the screen, and the position persists across sessions. Use it to give users a persistent way to manage their privacy settings.
8
+
9
+ ## Basic Usage
10
+
11
+ Use standalone or via the `showTrigger` prop on `ConsentDialog`:
12
+
13
+ ```tsx
14
+ import { ConsentDialogTrigger } from '@c15t/nextjs';
15
+
16
+ // Standalone
17
+ <ConsentDialogTrigger />
18
+
19
+ // Via ConsentDialog
20
+ <ConsentDialog showTrigger />
21
+ ```
22
+
23
+ For inline footer links (instead of a floating button), use [`ConsentDialogLink`](/docs/frameworks/next/components/consent-dialog-link).
24
+
25
+ ## Icon Options
26
+
27
+ ```tsx
28
+ {/* Built-in icons */}
29
+ <ConsentDialogTrigger icon="branding" /> {/* c15t logo (default) */}
30
+ <ConsentDialogTrigger icon="fingerprint" /> {/* Privacy icon */}
31
+ <ConsentDialogTrigger icon="settings" /> {/* Gear icon */}
32
+
33
+ {/* Custom icon */}
34
+ <ConsentDialogTrigger icon={<MyCustomIcon />} />
35
+ ```
36
+
37
+ ## Configurable Toolbar
38
+
39
+ Use the separate `ConsentDialogTriggerToolbar` when you want to place app-owned controls beside the privacy trigger. It always renders exactly one built-in action that opens consent preferences, so `actions` only contains controls your app owns.
40
+
41
+ ```tsx
42
+ <ConsentDialogTriggerToolbar
43
+ ariaLabel="Site controls"
44
+ actions={[
45
+ {
46
+ id: 'theme',
47
+ label: isDark ? 'Switch to light theme' : 'Switch to dark theme',
48
+ icon: isDark ? <SunIcon /> : <MoonIcon />,
49
+ pressed: isDark,
50
+ onSelect: toggleColorScheme,
51
+ },
52
+ {
53
+ id: 'support',
54
+ label: 'Open support chat',
55
+ icon: <ChatIcon />,
56
+ onSelect: openSupportChat,
57
+ },
58
+ ]}
59
+ preferences={{
60
+ icon: 'fingerprint',
61
+ label: 'Manage privacy settings',
62
+ }}
63
+ />
64
+ ```
65
+
66
+ Each custom action requires a stable `id`, accessible `label`, `icon`, and `onSelect` callback. Use `pressed` for toggle actions and `disabled` for unavailable actions. Your app remains responsible for state, integrations, and changing the icon or label. The preferences action automatically moves to the edge nearest the toolbar's snapped corner while custom actions keep their configured order.
67
+
68
+ Toolbars are horizontal by default. Set `orientation="vertical"` to stack the actions and enable Up/Down arrow-key navigation:
69
+
70
+ ```tsx
71
+ <ConsentDialogTriggerToolbar
72
+ orientation="vertical"
73
+ actions={toolbarActions}
74
+ />
75
+ ```
76
+
77
+ ### Toolbar Styling
78
+
79
+ The toolbar follows the standard styling precedence: internal CSS module styles, provider theme slots, then direct component overrides. Use `className` and `style` on the toolbar, or on an individual action, and use `noStyle` for a fully custom implementation.
80
+
81
+ ```tsx
82
+ <ConsentManagerProvider
83
+ options={{
84
+ theme: {
85
+ slots: {
86
+ consentDialogTriggerToolbar: 'my-toolbar',
87
+ consentDialogTriggerToolbarItem: 'my-toolbar-item',
88
+ consentDialogTriggerToolbarIcon: 'my-toolbar-icon',
89
+ },
90
+ },
91
+ }}
92
+ >
93
+ <ConsentDialogTriggerToolbar
94
+ className="fixed-toolbar"
95
+ style={{ '--cdtt-offset': '24px' }}
96
+ actions={[
97
+ {
98
+ id: 'support',
99
+ label: 'Open support chat',
100
+ icon: <ChatIcon />,
101
+ onSelect: openSupportChat,
102
+ className: 'support-action',
103
+ },
104
+ ]}
105
+ />
106
+ </ConsentManagerProvider>
107
+ ```
108
+
109
+ Available toolbar theme slots are `consentDialogTriggerToolbar`, `consentDialogTriggerToolbarItem`, and `consentDialogTriggerToolbarIcon`.
110
+
111
+ With `noStyle`, use `data-corner`, `data-dragging`, and `data-snapping` on the toolbar to style its current position and interaction state.
112
+
113
+ ## Visibility
114
+
115
+ Control when the trigger is visible:
116
+
117
+ ```tsx
118
+ {/* Always visible (default) */}
119
+ <ConsentDialogTrigger showWhen="always" />
120
+
121
+ {/* Only after user has made a consent choice */}
122
+ <ConsentDialogTrigger showWhen="after-consent" />
123
+
124
+ {/* Hidden (control visibility programmatically) */}
125
+ <ConsentDialogTrigger showWhen="never" />
126
+ ```
127
+
128
+ ## Position
129
+
130
+ Set the default corner and control persistence:
131
+
132
+ ```tsx
133
+ <ConsentDialogTrigger
134
+ defaultPosition="bottom-left"
135
+ persistPosition={true} // Remembers user's drag position
136
+ onPositionChange={(position) => console.log('Moved to:', position)}
137
+ />
138
+ ```
139
+
140
+ ## Size
141
+
142
+ ```tsx
143
+ <ConsentDialogTrigger size="sm" /> {/* Small */}
144
+ <ConsentDialogTrigger size="md" /> {/* Medium (default) */}
145
+ <ConsentDialogTrigger size="lg" /> {/* Large */}
146
+ ```
147
+
148
+ ## Compound Components
149
+
150
+ Build fully custom trigger layouts using sub-components:
151
+
152
+ ```tsx
153
+ <ConsentDialogTrigger.Root defaultPosition="bottom-right">
154
+ <ConsentDialogTrigger.Button size="md">
155
+ <ConsentDialogTrigger.Icon icon="settings" />
156
+ <ConsentDialogTrigger.Text>Privacy</ConsentDialogTrigger.Text>
157
+ </ConsentDialogTrigger.Button>
158
+ </ConsentDialogTrigger.Root>
159
+ ```
160
+
161
+ * `ConsentDialogTrigger.Root` — Portal wrapper with drag handling and position persistence
162
+ * `ConsentDialogTrigger.Button` — Draggable button element with size variants
163
+ * `ConsentDialogTrigger.Icon` — Icon display (branding, fingerprint, settings, or custom)
164
+ * `ConsentDialogTrigger.Text` — Optional text label
165
+
166
+ ## Props
167
+
168
+ ### ConsentDialogTrigger
169
+
170
+ |Property|Value|
171
+ |:--|:--|
172
+ |Type Name|\`ConsentDialogTriggerProps\`|
173
+ |Source Path|\`./packages/react/src/components/consent-dialog-trigger/types.ts\`|
174
+
175
+ \*ExtractedTypeTable: Could not extract "ConsentDialogTriggerProps" from "./packages/react/src/components/consent-dialog-trigger/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
176
+
177
+ ### ConsentDialogTriggerToolbar
178
+
179
+ |Property|Value|
180
+ |:--|:--|
181
+ |Type Name|\`ConsentDialogTriggerToolbarProps\`|
182
+ |Source Path|\`./packages/react/src/components/consent-dialog-trigger/types.ts\`|
183
+
184
+ \*ExtractedTypeTable: Could not extract "ConsentDialogTriggerToolbarProps" from "./packages/react/src/components/consent-dialog-trigger/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
185
+
186
+ ### Toolbar Actions
187
+
188
+ |Property|Value|
189
+ |:--|:--|
190
+ |Type Name|\`ConsentDialogTriggerToolbarAction\`|
191
+ |Source Path|\`./packages/react/src/components/consent-dialog-trigger/types.ts\`|
192
+
193
+ \*ExtractedTypeTable: Could not extract "ConsentDialogTriggerToolbarAction" from "./packages/react/src/components/consent-dialog-trigger/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
194
+
195
+ ### Preferences Action
196
+
197
+ |Property|Value|
198
+ |:--|:--|
199
+ |Type Name|\`ConsentDialogTriggerToolbarPreferences\`|
200
+ |Source Path|\`./packages/react/src/components/consent-dialog-trigger/types.ts\`|
201
+
202
+ \*ExtractedTypeTable: Could not extract "ConsentDialogTriggerToolbarPreferences" from "./packages/react/src/components/consent-dialog-trigger/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: ConsentDialog
3
3
  description: A modal dialog where users can toggle individual consent categories.
4
+ group: frameworks
4
5
  ---
5
6
  `ConsentDialog` is a modal that shows toggles for each consent category. In **opt-in jurisdictions**, it typically opens when users click "Customize" on `ConsentBanner`. It can also be controlled programmatically for use on settings pages regardless of jurisdiction.
6
7
 
@@ -160,18 +161,9 @@ If the stock dialog structure still works, prefer tokens, slots, and provider co
160
161
 
161
162
  ## Props
162
163
 
163
- ### ConsentDialogProps
164
-
165
- |Property|Type|Description|Default|Required|
166
- |:--|:--|:--|:--|:--:|
167
- |theme|undefined|Theme configuration override (deprecated)|-|Optional|
168
- |disableAnimation|boolean \|undefined|Disables all animations when true|-|Optional|
169
- |noStyle|boolean \|undefined|Removes default styles when true|-|Optional|
170
- |scrollLock|boolean \|undefined|Locks the scroll when true|-|Optional|
171
- |trapFocus|boolean \|undefined|Traps keyboard focus within a dialog when true|-|Optional|
172
- |open|boolean \|undefined|Control the open state. If omitted the dialog follows \`useConsentManager().activeUI === 'dialog'\`.|-|Optional|
173
- |legalLinks|(keyof LegalLinksTranslations)\[] \|null \|undefined|Controls which legal links to display. Options: \`undefined\` (default): Shows all available legal links; \`null\`: Explicitly hides all legal links; Array of keys: Shows only the specified legal links|-|Optional|
174
- |hideBranding|boolean \|undefined|Controls whether to hide the branding in the dialog footer.|-|Optional|
175
- |showTrigger|ConsentDialogTriggerProps \|undefined|Show a floating trigger button to resurface the consent dialog. Useful for allowing users to re-open the dialog after dismissing. Options: \`true\` - Show trigger with default settings; \`false\` - Hide trigger (default); \`ConsentDialogTriggerProps\` - Show trigger with custom props|false|Optional|
176
- |models|Model \|undefined|Which consent models this dialog responds to.|\['opt-in', 'opt-out']|Optional|
177
- |uiSource|string \|undefined|Override the UI source identifier sent with consent API calls.|'dialog'|Optional|
164
+ |Property|Value|
165
+ |:--|:--|
166
+ |Type Name|\`ConsentDialogProps\`|
167
+ |Source Path|\`./packages/react/src/components/consent-dialog/consent-dialog.tsx\`|
168
+
169
+ \*ExtractedTypeTable: Could not extract "ConsentDialogProps" from "./packages/react/src/components/consent-dialog/consent-dialog.tsx" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*