RatingInput

fun RatingInput(@IntRange(from = 0, to = 5) value: Int, onRatingChanged: (Int) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true)

A rating input component that allows the user to select a rating from 0 to 5.

Parameters

value

The current rating value Int.

onRatingChanged

The callback that is called when the rating is changed.

modifier

The modifier to be applied to the layout.

enabled

Whether the rating input is enabled.