Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

execonline-inc/star-rating-react

Repository files navigation

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

Name Type Description
size Number Max Rating (number of possible stars)
value Number Number of star highlighted
onChange Function Invoked 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

About

A React star rating component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published