rating-scale-with-rtl

1.0.15 • Public • Published

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

Package Sidebar

Install

npm i rating-scale-with-rtl

Weekly Downloads

36

Version

1.0.15

License

MIT

Unpacked Size

13.5 kB

Total Files

3

Last publish

Collaborators

  • ahmad_aldadah