DOCS
v0.4

AI Components / Consent Manager

Consent Manager

Privacy consent card with grouped toggles, required enforcement, and Accept/Reject/Save actions.

ai-workflow v0.6.0

Playground

Examples

Privacy settings
<ai-consent-manager title="AI Data Preferences" style="max-width:450px;"></ai-consent-manager>

Import

import { AiConsentManager } from '@cognivo/components';
// Or tree-shake: import '@cognivo/components/ai-consent-manager';

Per-component imports ship only that component (~8 kB gzip).

API Reference

PropTypeDefaultDescription
consents {id, label, description, required?, checked?, category?}[] Consent items
mode "inline"|"banner" "inline" Display mode
title string "Consent Settings" Panel title
acceptAllLabel string "Accept All" Accept button label
rejectAllLabel string "Reject All" Reject button label
saveLabel string "Save Preferences" Save button label

Events

EventDetailDescription
ai-consent-change {id, checked} Consent toggled
ai-consent-save {consents: Record<string, boolean>} Save clicked