rating
v0.88.2arrow_drop_down







You can clear the rating by clicking on the current start rating.
By default a rating will be only clearable if there is 1 icon.
Setting to true
/false
will allow or disallow a user to clear their rating.
Called after user selects a new rating.
A rating indicates user interest in content.
You can clear the rating by clicking on the current start rating.
By default a rating will be only clearable if there is 1 icon.
Setting to true
/false
will allow or disallow a user to clear their rating.
Called after user selects a new rating.
Called on click.
Called on keyup.
Called on mouseenter.
An internal icon sub-component for Rating component
Name | Type | Default value | Description |
---|---|---|---|
as | elementType | 'i' | An element type to render as (string or function). |
active | bool | Indicates activity of an icon. | |
className | string | Additional classes. | |
index | number | An index of icon inside Rating. | |
onClick | function | React’s original SyntheticEvent. | |
onKeyUp | function | React’s original SyntheticEvent. | |
onMouseEnter | function | React’s original SyntheticEvent. | |
selected | bool | Indicates selection of an icon. |