1.0.3 • Published 11 months ago

play-today-cookie-overlay v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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')} />
1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago