Rating
react ui rating component
Install
npm install rctui-rating
Usage
import Rating from 'rctui-rating'
<Rating
className={string} // class
icons={array} // 2 elements, example: [<Icon icon="star-outline" />, <Icon icon="star" />]
maxValue={int} // default value is 5
onChange={function}
readOnly={bool} // default value is false
theme={string}
value={number}
/>
Register theme
Rating.register(
string, // theme name
array // 2 elements, example: [<Icon icon="star-outline" />, <Icon icon="star" />]
)