Your privacy choices

We use necessary cookies, and others only if you allow them. You can change your mind at any time.

FC

fancy-compliance-ui

@particle-academy/fancy-compliance-ui

A consent banner, a preferences dialog and script gating for React, built from react-fancy. Reject is exactly as easy as accept, nothing is pre-ticked, withdrawal is one click from the footer, and a script that already ran is never claimed to be stopped. AAA, RTL, every string a translation key. Pairs with particle-academy/fancy-compliance.

UI surfaceTS 3 components
Part of Fancy Compliance — 2 packages, one productSee the family
UI surface
3 components, each with a live demo, props table, and source.
ButtonlivebetaCardRK
$npm install @particle-academy/fancy-compliance-ui

Components

3 components · click any tile for a full demo, source, and install snippet.

ConsentBannerOpen →

Your privacy choices

We use necessary cookies, and others only if you allow them. You can change your mind at any time.

The first-visit banner: a labelled, non-modal region with Accept all, Reject all and Customise as the same component, size and classes. It shows on a first visit and after a policy version change.
ConsentGateOpen →

Analytics is off, so nothing here loads.

Renders its children only while a category is allowed, and unmounts them on withdrawal. useConsentScript loads a script the same way and reports honestly when a withdrawn script needs a reload (ConsentReloadNotice).
ConsentPreferencesOpen →
The preferences dialog: one switch per category with its description and purposes, nothing optional pre-ticked. Opened any time from ConsentPreferencesTrigger; turning a category off is recorded as a withdrawal.
What next
Click any component for a live demo, props, and source — or install the package and go.