README
star-rating
Star rating component. Upgrades input element.
Install
npm install --save @aaronshaf/star-rating
Usage
import React, { Component } from "react";
import StarRating from "@aaronshaf/star-rating";
const Example = () => {
return (
<StarRating size="2rem">
<input
type="number"
onChange={handleChange}
min="1"
max="5"
step="1"
value="0"
/>
</StarRating>
);
};
License
MIT © aaronshaf