Overlay

Overlays are a semi-transparent layer between an image and text to make copy easier to read.

Overlay

Maven Central Class reference Source code

Default

Day Night
Overlay component Overlay component - dark mode

Installation

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

Usage

Example of a Overlay:


                                                
                                                import net.skyscanner.backpack.compose.overlay.BpkOverlay
                                                import net.skyscanner.backpack.compose.overlay.BpkOverlayType
                                                
                                                
                                                BpkOverlay(
                                                  overlayType = BpkOverlayType.SolidHigh,
                                                  foregroundContent = {
                                                    /** foreground content **/
                                                  },
                                                ) {
                                                  /** background content **/
                                                }