Cookie consent
A GDPR cookie banner.
We use cookies to enhance your experience.
Custom message
We use cookies to personalise content and analyse traffic.
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
message | string | 'We use cookies to enhance your experience.' | Consent message shown to the user. |
demo | boolean | false | When true, always shows the banner and skips reading/writing localStorage. |
storageKey | string | 'bui-cookie-consent' | localStorage key under which the accept/decline choice is persisted. |
ariaLabel | string | — | Overrides the localized accessible label for the consent region. |
Outputs
| Event | Payload | Description |
|---|---|---|
decided | boolean | Emitted with `true` when the user accepts and `false` when they decline. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.