blauhub-cookie
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

Overview

npm size License: MIT

Blauhub cookie aims to be a modern DSGVO and TTDSG conform cookie banner. It is inspired by Cookie Consent.

Highlights

  • Minimal code size: less than 3kb minified and gzipped
  • Customizeable
  • SSR compatible and hooks
  • Accessible

Installation

npm install blauhub-cookie

Usage

Basic Usage

import { CookieConsent, Expander } from "blauhub-cookie";
import "blauhub-cookie/dist/bhcookie.min.css";

function Component() {
  return (
    <CookieConsent
      onAcceptSelection={(permissions) => console.log(permissions)}
    >
      <p>Details of cookie settings can be viewed here</p>

      <Expander id="functional" title="Text 1" isRequired>
        <p>Detail Info</p>
      </Expander>
    </CookieConsent>
  );
}

Demo

Disclaimer

This publication is provided as is without any express or implied warranties. While every effort has been taken to ensure the accuracy of the information contained in this publication, the authors/maintainers/contributors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

Developed @ blauhub

License

MIT

Package Sidebar

Install

npm i blauhub-cookie

Weekly Downloads

0

Version

0.1.8

License

MIT

Unpacked Size

122 kB

Total Files

97

Last publish

Collaborators

  • blauhub