Skip to content

Discord-like side panels for Jetpack Compose Multiplatform.

License

Notifications You must be signed in to change notification settings

MateriiApps/panels

Repository files navigation

Panels Maven Central

Discord-like swiping side panels for Jetpack Compose Multiplatform.

Installation

repositories {
  mavenCentral()
}

dependencies {
  implementation("io.github.materiiapps.panels:panels:1.0.1")
}

Usage

Swipe Panels

Swipe Panels behaves just like the layout in the Discord Android app.

SwipePanels(
  start = {
    // Start panel
  },
  center = {
    // Center panel
  },
  end = {
    // End panel
  },
)

Static Panels

Static Panels behaves just like the layout in the Discord Desktop app.

StaticPanels(
  start = {
    // Start panel
  },
  center = {
    // Center panel
  },
  end = {
    // End panel
  },
)

These are the most basic ways to use the panels. Check out the samples for more detailed examples.