play-today-cookie-overlay
v1.0.3
Published
Overlay for the cookie consent
Downloads
7
Readme
play-today-cookie-overlay
Installation
npm install play-today-cookie-overlay
Usage
import { CookieOverlay } from 'play-today-cookie-overlay';
<CookieOverlay />;
Option
isMetaverse
Type: boolean
Optional: true
Default: false
Description: If true, the overlay will be displayed in the metaverse style.
<CookieOverlay isMetaverse={true} />
privacyPolicyLink
Type: string
Optional: true
Default: /privacy-policy
Description: Link to the privacy policy.
<CookieOverlay privacyPolicyLink={'/privacy-policy'} />
cookiePolicyLink
Type: string
Optional: true
Default: /privacy-policy#opt9
Description: Link to the cookie policy.
<CookieOverlay cookiePolicyLink={'/privacy-policy#opt9'} />
privacyPolicyEvent
Type: () => void
Optional: true
Description: Event that is triggered when the privacy policy is clicked. (GA Event can be triggered here)
<CookieOverlay
privacyPolicyEvent={() => console.log('Privacy Policy clicked')}
/>
cookiePolicyEvent
Type: () => void
Optional: true
Description: Event that is triggered when the cookie policy is clicked. (GA Event can be triggered here)
<CookieOverlay cookiePolicyEvent={() => console.log('Cookie Policy clicked')} />