Socket
Book a DemoInstallSign in
Socket

blauhub-cookie

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blauhub-cookie

Blauhub dsgvo and TTDSG compatible react cookie consent

0.1.8
latest
Source
npmnpm
Version published
Weekly downloads
21
162.5%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

cookieconsent

FAQs

Package last updated on 01 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.