react-star
v1.1.0
Published
A tiny star rating component with custom icons for React.
Downloads
52
Maintainers
Readme
react-star
A tiny star rating component with custom icons for React.
🎁 Features
- Easy to use
- Compatible with both JavaScript and TypeScript
🔧 Install
react-star is available on npm. It can be installed with the following command:
npm install react-star --save
react-star is available on yarn as well. It can be installed with the following command:
yarn add react-star
💡 Usage
import React from 'react';
import { Star } from 'react-star';
class App extends React.Component {
render() {
return (
<Star
onChange={(value) => console.log(value)}
/>
);
}
};
export default App;
📖 APIs
🔰 Callbacks
❗ Issues
If you think any of the react-star
can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.
🌟 Contribution
We'd love to have your helping hand on contributions to react-star
by forking and sending a pull request!
Your contributions are heartily ♡ welcome, recognized and appreciated. (✿◠‿◠)
How to contribute:
- Open pull request with improvements
- Discuss ideas in issues
- Spread the word
- Reach out with any feedback