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.
@cuban-engineer/react-cookies-consent
Advanced tools
Readme
React component for the managing the user awareness regarding cookies usage
npm install --save @cuban-engineer/react-cookies-consent
or
yarn add @cuban-engineer/react-cookies-consent
import React, { Component } from 'react'
import CookiesConsent from '@cuban-engineer/react-cookies-consent'
class Example extends Component {
render () {
return (
<CookiesConsent />
)
}
}
cookiesId
Value with which the cookie will be save in the browser: (Type: String
, Default value: 'cookies-consent')message
Message that will be show to the user: (Type String
, Default value: 'Cookies help us deliver our services. By using our services, you agree to our use of cookies.')buttonMessage
Text of the submit action button: (Type: String
, Default value: 'OK')expiresIn
Time needed for the cookie to expire: (Type: Number
, Default value: 365)link
Link for more information pages: (Type: Object
, Default values: { url: undefined, text: undefined, target: '_blank'})By default the rendered component will be fixed at the bottom and will look like this:
But the styles can be modified by overriding this css
classes:
.cookies-consent
: Entire Component container..cookies-consent-text
: Container of the message showed to the user..cookies-consent-button
Container of the Button for accepting the use of cookies..cookies-consent-link
Container of the a
tag for the link.@cuban-engineer/react-cookies-consent is MIT-licensed.
FAQs
React component for the managing the user awareness regarding cookies usage
The npm package @cuban-engineer/react-cookies-consent receives a total of 1 weekly downloads. As such, @cuban-engineer/react-cookies-consent popularity was classified as not popular.
We found that @cuban-engineer/react-cookies-consent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.