Skip to content

adafycheng/reactjs-rating-component

Repository files navigation

reactjs-rating-component

A rating component built using React.js

NPM JavaScript Style Guide

Install

npm install --save reactjs-rating-component

Usage

import React, { Component } from 'react'

import RatingComponent from 'reactjs-rating-component'

class Example extends Component {
  render() {
    return <>
        <RatingComponent heading="C#" subheading="6 months" rate="2" starColor="purple" />
        <RatingComponent heading="Java" subheading="11 years" rate="4" />
        <RatingComponent heading="JavaScript" subheading="10 years" rate="4" headingColor='purple' subheadingColor='orange' starColor="green" />
        <RatingComponent heading="Node.js" subheading="6 months" rate="3" starColor="purple" />
        <RatingComponent heading="React" subheading="6 months" rate="2" headingColor='#FF0000' subheadingColor='#00FF00' starColor="#0000FF" />
    </>
  }
}

Example Image

License

MIT © adafycheng

Releases

No releases published

Packages

No packages published