Rating
The Rating component generates a rating scale.
Props:
Properties | Types | Description | Required? | Default |
---|---|---|---|---|
|
| The value that the rating scale will start at -- note that the value will override the defaultValue |
| |
|
| disables and grays out component |
| |
|
| icon of rating that is not selected, example if rating is 4/5 then the |
| |
|
| Hex color of the |
| |
|
| sets the theme of the component |
| |
|
| icon of rating that is selected, example if rating is 4/5 then the |
| |
|
| Hex color of the |
| |
|
| sets the theme of the component |
| |
|
| Max rating, set number of icons displayed |
| |
|
| html name attribute |
| |
| Callback function( error, number, whisper) => {} | calls function when rating is changed |
| |
|
| the increment that the rating can increase or decrease |
| |
|
| enables/disables the ability to change the value |
| |
|
| size of component:
|
| |
|
| value of rating |
|
Examples
Last updated