rctui-rating

0.1.1 • Public • Published

Rating

react ui rating component

online example

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" />]
)

Readme

Keywords

Package Sidebar

Install

npm i rctui-rating

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • lobos