Skip to content

ahmadaldadah/rating-scale-rtl

Repository files navigation

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

MIT License GPLv3 License AGPL License

License

MIT

Support

For support, issues , email aldadahahmad@gmail.com or contact with me on twitter - @ahmadaldadah.

Authors

Ahmad ALDadah

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published