0.0.1 • Published 8 years ago

star-rating-react v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

star-rating-react

A React star rating component.

Install

$ npm install --save star-rating-react

react-range-slider-demo

Usage

import StarRating from 'star-rating-react';

<StarRating
  size={15}
  value={3}
  onChange={function(val){console.log(val)}}
/>,

Props

NameTypeDescription
sizeNumberMax Rating (number of possible stars)
valueNumberNumber of star highlighted
onChangeFunctionInvoked when user selects a rating

Locally serve example

$ npm run dev-server

NOTE: Navigate to http://localhost:8080/examples/

Build

$ npm run build

Test

$ npm test

License

MIT