Skip to content

MaxiMittel/cookie-popup-gdpr-react

Repository files navigation


Logo

Cookie Popup


View Demo · Report Bug · Request Feature

Information

This is a React component for cookie-popup-gdpr.

Install

npm i cookie-popup-gdpr-react

Usage

To configure and show the popup add the code below. You can find more information about the configuration here.

function App(){
    let config = {
        header: "This site contains cookies",
        //Rest of your configuration
    };

    return (
        <div>
            <CookiePopup config={config}>
        </div>
    );
}

Configuration

More information

Example

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Maximilian Mittelhammer - @maxi_maximittel - maximittel@outlook.de

Project Link: https://github.com/MaxiMittel/cookie-popup-gdpr