cookie-banner
is an easy way to comply with the GDPR regarding cookie consent. Rather than trying to deceive users into thinking that they have to press "Accept all cookies" and consequently getting a fine, cookie-banner
is primary built to follow EU laws regarding consent. It minimizes resources put on ensuring GDPR compliance and can easily be put in any project, either with minimal setup or deeper configuration according to need.
cookie-banner
is available for React, Vue, Angular, and as an independent Web Component. For instructions, view the readme of the relevant directory:
Or go directly to the npm page:
Since cookie-banner
is build with Stencil, only the files in packages/stencil-library should be manually modified. To get a local copy up and running follow these steps.
- Node 18
- npm
- Clone the repo
git clone https://github.com/arvidsandin/cookie-banner.git && cd cookie-banner
- Install npm packages
npm install
- Start local development server
cd packages/stencil-library npm start
When creating the framework integrations, run npm build
once in packages/stencil-library
and then once in packages/angular-workspace
, packages/react-library
or packages/vue-library
depending on which framework to build for.
Distributed under the MIT License. See LICENSE.txt
for more information.
- Thanks to Jens Hunt for supervising this project