rating-scale-with-rtl
v1.0.15
Published
rating scale that support rtl and can change color and the length of the rating
Downloads
11
Maintainers
Readme
Rating Scale React Component
It's a react component for rating scale and support RTL and you can change color's by input or you can by props
Installation
Install my-project with npm
npm i rating-scale-with-rtl
Usage/Examples
import Rating from 'rating-scale-with-rtl'
function App() {
return <Rating rtl={false} length={10} colorBackground="#e4e5e9" colorRating="#ffc107" width='75px' height='20px' />
}
Demo
https://codepen.io/ahmad-aldadah/pen/RwQRwLP
Available options
| Option | Type | Default | Description |
| :-------- | :------- | :------ |:------------------------- |
| length
| number
| 10 |The max number of rating to display.|
| width
| text
| 75px |The max number of rating to display.|
| height
| text
| 20px |The max number of rating to display.|
| rtl
| boolean
| false |The dirction of the rating to display.|
| colorBackground
| Hex
| #e4e5e9 |The background color of rating to display.|
| colorRating
| Hex
| #ffc107 |The rating color to display.|
Badges
License
Support
For support, issues , email [email protected] or contact with me on twitter - @ahmadaldadah.