SearchStarRatingComposable

fun SearchStarRatingComposable(rating: Float?, maxRating: Int = 5, icons: SearchRatingComposableIcons = SearchRatingComposableDefaults.icons, colors: SearchRatingComposableColors = SearchRatingComposableDefaults.colors())

Composable function that displays a visual star rating.

This component renders a row of stars representing a rating value, typically used to show user ratings for businesses, products, or services. It supports partial stars for fractional ratings and can be customized with custom icons and colors.

Parameters

rating

The current rating value to display, from 0 to maxRating. If null, a rating of 0 will be shown (typically indicating "not rated").

maxRating

The maximum possible rating (default is 5).

icons

The icon configuration for the rating stars.

colors

The color configuration for the rating stars.