easy-rating-ez
v4.0.4
Published
easy rating component
Downloads
6
Maintainers
Readme
what is this?
An easy rating component to help you with your needs. includes a star, heart and many more on the way, change the text size and icon size ,give your custom colors to the rating and go beyond. Easyly customizable.
Install
`npm i easy-rating-ez --save`
Usage
import EasyRating from 'easy-rating-ez';
function App() {
return (
<div>
<EasyRating
title="Rate me"
count={5}
textSize="20"
iconSize="50"
primaryColor="#ffc107"
secoundaryColor="#e4e5e9"
showRating={false}
defaultRating="2"
disabled={false}
icon="star"
/>
</div>
);
}
PROPTYPES
| Prop | Type | Default | | --------------- | ------- | ------------- | | className | String | | | count | integer | 5 | | title | String | Rate me | | textSize | integer | 20 | | iconSize | integer | 50 | | primaryColor | String | #ffc107 | | secoundaryColor | String | #e4e5e9 | | showRating | bool | false | | defaultRating | integer | 2 | | disabled | bool | false | | icon | String | star or heart |