Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
react-awesome-stars-rating
Advanced tools
React Awesome Stars Rating is a simple star component with easy integration for your React applications.
Weekly downloads
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 285 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.