CookieConsent
Warn the user about the use of necessary cookies and if analytical cookies are present, allow the user to turn these on as well.
Import
JSX
Usage
JSX
Variants
Necessary cookies only
JSX
Analytical cookies included
JSX
Props
| Prop | Type | Default | Description |
|---|---|---|---|
onNecessary | () => Promise<void> | void | - | Callback function for necessary cookies only. |
onAcceptAll | () => Promise<void> | void | - | Callback function for all cookies. |
allowChoice | boolean | true | True if analytical cookies are present, false otherwise. |
position | "fixed" | "relative" | "fixed" | Position of the popup. |
children* | ReactNode | - | Paragraph text inside the cookie disclaimer. |
