Rating Bar

Rating

Maven Central Class reference Source code

Default

Day Night
Rating bar component Rating bar component - dark mode

Installation

Backpack Compose is available through Maven Central. Check the main Readme for a complete installation guide.

Usage

Example of a rating bar:


                                                
                                                import net.skyscanner.backpack.compose.ratingbar.BpkRatingBar
                                                
                                                BpkRatingBar(
                                                    label = "Label",
                                                    rating = 4.5f,
                                                    style = BpkRatingBarStyle.OnContrast,
                                                    scale = BpkRatingScale.ZeroToTen,
                                                    showScale = false,
                                                )