DOCS
v0.4

AI Components / Consent Manager

Consent Manager

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

ai-workflowv0.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
titlestring"Consent Settings"Panel title
acceptAllLabelstring"Accept All"Accept button label
rejectAllLabelstring"Reject All"Reject button label
saveLabelstring"Save Preferences"Save button label

Events

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