UikStarRating

Displays stars filled and outlined based on a rating prop. This component uses Uikon to render values

PropertyTypeRequiredDefault ValueDescription
classNameStringfalsenullclassName, e.g. "my-custom-styling"
ratingNumberfalse5rating from 0 to 5
...restanyfalseOther properties are passed down to the wrapping element

UikStarRating Examples

ComponentExample Code
star_fillstar_fillstarstarstar
<UikStarRating rating={ 2 } />
star_fillstar_fillstar_fillstar_fillstar_fill
<UikStarRating rating={ 5 } />