Star Rating

Install the component dependency:

Include a React component in your project:

Name
Value
Description
Default
onChange
(number, Event) => ()
triggered when the value changes
value
number
current value as a float

Provide a value with the rating. Values are rounded down to the nearest half.

Mode is determined by the presence of the onChange prop. When a function is provided the component will become interactive.

If a value exists, the component may still be interactive on mouse hover