zedkit
@zedtech/zedkit-observability

Consent UI in React

Provider, category gate, banner, and hook to defer analytics loaders.

alpha

At a glance

  • Who: React apps showing a first-visit banner and gating children.
  • What: Provider, category gate, banner, and hook to defer analytics loaders.
  • Use when: Public marketing sites using the observability tracker port.
  • Avoid when: Server components (use the store on the client only).

Install

pnpm add @zedtech/zedkit-observability

Latest: 0.1.0 (via changesets).

Example

Usage
import { ConsentBanner, ConsentProvider } from "@zedtech/zedkit-observability/consent/react";
import { createMemoryConsentStore } from "@zedtech/zedkit-observability/consent";
const store = createMemoryConsentStore();

Wraps: @zedtech/zedkit-ui (Dialog, Switch)

On this page