RatingStar

fun RatingStar(modifier: Modifier = Modifier, size: Dp = RatingDefault.SmallStarSize, state: RatingStarState = RatingStarState(1), enabled: Boolean = true)

RatingStar is the atomic element of rating components

Parameters

modifier

to be applied

enabled

whether the star should be enabled or disabled

size

of the star, can be any size but preferably, use RatingDefault.StarSize or RatingDefault.SmallStarSize.

state

of the star, can be RatingStarState.Full, RatingStarState.Empty or RatingStarState.Half or RatingStarState(1) or RatingStarState(0.5) or RatingStarState(0.0)