Panel

Panels are useful for housing distinct areas of related content. Unlike cards these are not clickable.

Panel

Maven Central Class reference Source code

Default

Day Night
Panel component Panel component - dark mode

Installation

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

Usage

Example of a Panel:


                                                
                                                import net.skyscanner.backpack.compose.panel.BpkPanel
                                                
                                                BpkPanel {
                                                    content()
                                                }

Example of a Panel with no padding:


                                                
                                                import net.skyscanner.backpack.compose.panel.BpkPanel
                                                import net.skyscanner.backpack.compose.panel.BpkPanelPadding
                                                
                                                BpkPanel(padding = BpkPanelPadding.None) {
                                                  content()
                                                }