1.2.0 • Published 6 years ago

react-star-review v1.2.0

Weekly downloads
33
License
MIT
Repository
github
Last release
6 years ago

React star review

version downloads semantic-release travis build

A simple and customizable rating component for React Banner

View the demo.

Install

npm install react-star-review
// or
yarn add react-star-review

Props

PropTypeDescriptionDefault
sizeNumberSize of a star in px30
ratingNumberInitial rating0
rtlBooleanRating behaves in right-to-left directionfalse
interactiveBooleanIf true, users can change a rating. Must also provide onRatingChangedfalse
onRatingChangedFunctionCallback when rating changesnull
iconStringA valid CSS Basic shape to be used as a mask for ratingsStar
countNumberNumber of stars, aka the scale5
borderThicknessNumberThe stars' border thickness2
filledColorStringColor used to fill the star#FFC82C
clearColorStringColor used to indicate the empty areas of the star#FFF
borderColorStringThe stars' border color#E4B50E
hoverColorStringColor used to fill when a user hovers over them#FBDC84

Todos

  • Add support for right-to-left
  • Add support for custom icons
1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

1.0.1

6 years ago