Quickstart

Add consent management to your React app in under 5 minutes.

Via CLI

Manual Installation

Install package

Create ConsentManager components

Create a provider component with the consent UI and a wrapper that re-exports it. This initializes the consent store and makes consent state available to all child components.

Info

Don't have a backend yet? Use mode: 'offline' to get started with local-only consent storage. See Client Modes for details.

Mount ConsentManager at the app root

Wrap your existing app tree with ConsentManager so all routes/components can access consent state.

Verify it works

Start your development server and confirm:

  1. A consent banner appears at the bottom of the page
  2. Clicking "Customize" opens a dialog with toggles for each consent category
  3. After accepting or rejecting, the banner dismisses and your choice persists across page reloads

Optional: Add DevTools

Install DevTools only if you want a runtime inspector while building and debugging:

Then add it inside your existing provider:

Info

Want to understand what's happening under the hood? See Initialization Flow for the lifecycle and Cookie Management for script/cookie behavior and revocation handling.

Optional: Install Agent Skills

Install c15t agent skills to let AI agents help with styling, i18n, scripts & other configuration.

See AI Tools for details.

Next steps

Last modified on February 10, 2026