0.1.12 ā€¢ Published 2 years ago

react-rating-tool v0.1.12

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React-Rating-Tool

Rating Stars

šŸŽ‰ 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

Click here to see Demo

License

Licensed under MIT