react-multi-level-star-rating-component
v1.1.0
Published
react-multi-level-star-rating-component
Downloads
4
Readme
react-multi-level-star-rating-component
react-multi-level-star-rating-component
Install
npm install --save react-multi-level-star-rating-component
Usage
import React, { Component } from 'react'
import { MultiLevelStarRating } from 'multi-level-star-rating-component'
import 'multi-level-star-rating-component/dist/index.css'
const Example = () => {
return <MultiLevelStarRating topics={topics} />
}
Example Prop
topics = [ { title: 'Title 1', editable: false, //true for editing star rating: 3.5, //average of items star rating key: '0', items: [ { title: 'Item 1', rating: 4 }, { title: 'Item 2', rating: 3 } ] }, { title: 'Title 2', editable: false, //true for editing star rating: 3.5, //average of items star rating key: '0', items: [ { title: 'Item 1', rating: 4 }, { title: 'Item 2', rating: 3 } ] } ]
License
MIT © sri2307
Credits
This Package is created by using React Bootstrap and React-Star-Rating-Component