react-rating-tool
v0.1.12
Published
Simple react rating tool to rate stuffs!
Downloads
3
Readme
React-Rating-Tool
🎉 React-Rating-Tool helps you to add a rating component to your app with ease.
Installation
$ npm install --save react-rating-tool
Features
- Easy to set up for real, you can make it work in less than 5sec!
- Super easy to customize
- Just pass the star count, value, and size. and it's ready to use.
- Animation on hover.
- Click on the star to rate.
The gist
import React, { useState } from "react";
import { StarRating } from "react-rating-tool";
function App() {
const [rating, setRating] = useState(0);
return (
<div>
<StarRating
count={5}
value={rating}
setRating={setRating}
size={45}
/>
</div>
);
}
export default App;
Demo
License
Licensed under MIT