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-awesome-stars-rating
Advanced tools
Readme
React Awesome Stars Rating is a simple star component with easy integration for your React applications.
npm install react-awesome-stars-rating
import React from 'react';
import ReactDOM from 'react-dom';
import ReactStarsRating from 'react-awesome-stars-rating';
const onChange = (value) => {
console.log(`React Stars Rating value is ${value}`);
};
const ReactStarsExample = ({ value }) => {
return <ReactStarsRating onChange={onChange} value={value} />;
};
ReactDOM.render(<ReactStarsExample />, document.getElementById('root'));
Name | Description | Type | Default |
---|---|---|---|
id | Identifier | String | ${Date.now()} |
value | Value | Number | 0 |
onChange | A function, that will be invoked when value have changed | Function | null |
isEdit | If true the rating is in editing mode | Boolean | true |
isHalf | If true half stars are available | Boolean | true |
count | Count of the stars | Number | 5 |
size | Size of the stars | Number | 25 |
starGap | Gap between the stars | Number | 0 |
className | Class name for button container | String | '' |
primaryColor | Star's color when star is active | String | 'orange' |
secondaryColor | Star's color when star isn't active | String | 'grey' |
isArrowSubmit | Left arrow or right arrow click onvokes onChange | Boolean | false |
You can see live examples by below links:
FAQs
React Awesome Stars Rating is a simple star component with easy integration for your React applications.
The npm package react-awesome-stars-rating receives a total of 304 weekly downloads. As such, react-awesome-stars-rating popularity was classified as not popular.
We found that react-awesome-stars-rating demonstrated a healthy version release cadence and project activity because the last version was released less than 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.