Socket
Socket
Sign inDemoInstall

react-cookie-gpdr

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-cookie-gpdr

🍪 Beautiful and customizable cookie consent widget for your applications


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

🍪 Beautiful and customizable react cookie consent widget for your applications

License: MIT Donate

enter image description here


:cloud: Installation

npm install react-cookie-gpdr

:raised_hands: Example

An example of the react-cookie-gpdr component is available here : Example of use

 <CookieWidget location="right"
               color={"#bb2030"}
               policyLink={"https://example.org"}
               title={"This website"}
               subtitle={"uses cookies"}
               text={"We use cookies and similar methods to recognize visitors and remember their preferences. We also use them to measure ad campaign effectiveness, target ads and analyze site traffic."}
               policyLinkText={"Read the privacy policy"}
               cookieSecurity={true}
               hideOnScrollDown={true}
               onAccept={() => alert('accepted')}
               onReject={() => alert('refused')}/>

:rocket: Props

PropsDescriptionDefault value
locationWidget position (bottom left or bottom right)"left"
colorColor scheme of the widget"#bb2030"
policyLinkURL of your policy Link/
policyLinkTextURL of your policy Link"Read the privacy policy"
titleWidget title"This website"
subtitleWidget subtitle"use Cookies"
textWidget text content"We use cookies and similar methods to recognize visitors and remember their preferences. We also use them to measure ad campaign effectiveness, target ads and analyze site traffic. To learn more about these methods, including how to disable them, view our Cookie Policy."
rejectButtonTextWidget reject button"Reject All"
acceptButtonTextWidget accept button"Accept All"
cookieSecurityCookie security (true if you use https)true
hideOnScrollDownAutomaticaly hide and accept on scroll downfalse
onAcceptOn Accept All functionvoid
onRejectOn Reject All functionvoid

:computer: Development

npm run storybook

This will start Storybook process.

To view the Storybook, go to http://localhost:6006 in your browser.

:mag_right: Credits

react-cookie-gpdr is a library of Clément de Louvencourt

Special thanks to:

  • Your name here ?

Keywords

FAQs

Last updated on 12 Jul 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc