Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-star-review

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-star-review

A simple and customizable rating component for React

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React star review

version downloads semantic-release travis build

A simple and customizable rating component for React Banner

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
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

Package last updated on 02 Apr 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc