Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-cookie-gpdr
Advanced tools
Readme
🍪 Beautiful and customizable react cookie consent widget for your applications
npm install react-cookie-gpdr
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')}/>
Props | Description | Default value |
---|---|---|
location | Widget position (bottom left or bottom right) | "left" |
color | Color scheme of the widget | "#bb2030" |
policyLink | URL of your policy Link | / |
policyLinkText | URL of your policy Link | "Read the privacy policy" |
title | Widget title | "This website" |
subtitle | Widget subtitle | "use Cookies" |
text | Widget 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." |
rejectButtonText | Widget reject button | "Reject All" |
acceptButtonText | Widget accept button | "Accept All" |
cookieSecurity | Cookie security (true if you use https) | true |
hideOnScrollDown | Automaticaly hide and accept on scroll down | false |
onAccept | On Accept All function | void |
onReject | On Reject All function | void |
npm run storybook
This will start Storybook process.
To view the Storybook, go to http://localhost:6006
in your browser.
react-cookie-gpdr is a library of Clément de Louvencourt
Special thanks to:
FAQs
🍪 Beautiful and customizable cookie consent widget for your applications
The npm package react-cookie-gpdr receives a total of 1 weekly downloads. As such, react-cookie-gpdr popularity was classified as not popular.
We found that react-cookie-gpdr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.