Page Indicator

The page indicator component is used to indicate a stack of pages or images in a group and highlight the current selected page or images.

Page Indicator

Maven Central Class reference Source code

Default

Day Night
PageIndicator component PageIndicator component - dark mode

Installation

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

Usage

Example of a Page Indicator:


                                                
                                                import net.skyscanner.backpack.compose.pageindicator.BpkPageIndicator
                                                import net.skyscanner.backpack.compose.pageindicator.BpkPageIndicatorStyle
                                                
                                                BpkPageIndicator(
                                                  currentIndex = 1,
                                                  totalIndicators = 8,
                                                  style = BpkPageIndicatorStyle.Default,
                                                )