It's a react component for rating scale and support RTL and you can change color's by input or you can by props
Install my-project with npm
npm i rating-scale-with-rtl
import Rating from 'rating-scale-with-rtl'
function App() {
return <Rating rtl={false} length={10} colorBackground="#e4e5e9" colorRating="#ffc107" width='75px' height='20px' />
}
https://codepen.io/ahmad-aldadah/pen/RwQRwLP
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. |
For support, issues , email aldadahahmad@gmail.com or contact with me on twitter - @ahmadaldadah.