@larsroettig/react-cookie-popup

    2.0.1 • Public • Published

    npmversion TravisStatus CoverageStatus Greenkeeperbadge

    Is a small React TypeScript Module allows to render a cookie popup based on Tailwind CSS.

    Example Styling

    react_modal

    A full Demo can you find here: https://github.com/larsroettig/react-cookie-popup-demo

    Installation

    yarn add @larsroettig/react-cookie-popup
    

    or npm

    npm i @larsroettig/react-cookie-popup
    

    Components

    Component Names

    Function

    CookiePopup

    The PopUp Element

    CookieImprintButton

    Shows a button to revoke the user decision for the imprint deletes all cookie

    CookieButton

    Simple Tailwind Button Element with a clickCallback

    You can import the CookiePopup like this:

    import {CookiePopup} from "@larsroettig/react-cookie-popup";
    

    How to use the CookiePopup:

    <CookiePopup>
        <section>
            <h4 className="py-5 text-xl">
                   A very nice Cookie Message
            </h4>
        </section>
    </CookiePopup>
    

    Contribute

    Installation:

    git clone git@github.com:larsroettig/react-cookie-popup.git
    yarn install
    

    Execute Tests:

    git clone git@github.com:larsroettig/react-cookie-popup.git
    yarn install
    yarn test:watch
    

    Install

    npm i @larsroettig/react-cookie-popup

    DownloadsWeekly Downloads

    17

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    174 kB

    Total Files

    48

    Last publish

    Collaborators

    • larsroettig