Socket
Socket
Sign inDemoInstall

react-star-review

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-star-review

A simple and customizable rating component for React


Version published
Weekly downloads
24
decreased by-82.73%
Maintainers
1
Install size
44.5 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 03 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc