1.0.17 • Published 2 years ago

@performing/cookie-popup-gdpr v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Cookie Popup Gdpr

Simple cookie popup to ask consent.

image

Installation

npm install @performing/cookie-popup-gpdr

Usage

import '@performing/cookie-popup-gdpr'
import '@performing/cookie-popup-gdpr/dist/style.css'

useCookies({
  description: 'We use cookies...',
  acceptButtonText: 'Accept All',
  rejectButtonText: 'Reject All',
  saveButtonText: 'Save',
  customizeButtonText: 'Customize',
}, {
  necessary: { 
    default: true, 
    optional: false, 
    title: 'Necessary:',
    description: 'This type of cookie is necessary',
  },
  statistics: { 
    default: false, 
    optional: true, 
    title: 'Statistics:',
    description: 'This type of cookie is for gather statistics',
  },
}, (p) => { 

  if (p.statistics) {
    // gather statistics  
  }

});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago