Skip to content

Basic segmented display for Jetpack Compose Android, iOS, Desktop, and Web

License

Notifications You must be signed in to change notification settings

fsryan-org/fs-segmented-display

Repository files navigation

segmented display

Segmented Display

javadoc

Segmented displays are ubiquitous in the world of electronics. They are used in everything from digital clocks to thermostats to calculators to microwave ovens. This library provides a Composable function that can be used to create and style a segmented display in your Compose Multiplatform application.

Supported Platforms

Because this library is a Compose Multiplatform library, the following platforms are supported:

  • Android
  • iOS
  • Desktop (via JVM)
  • Web (via WASM)

Project Structure

There are two modules in this project:

  • segmented-display, the library module that you can depend upon in your Compose Multiplatform project
  • composeApp, a demo application that shows the main library features

Adding this Library to your Project

If using the kotlin multiplatform plugin, first, configure the compose plugin. Then add:

kotlin {
    sourceSets {
        commonMain.dependencies {
            implementation("com.fsryan.ui:segmented-display:x.y.z")
        }
    }
}

Otherwise, configure Compose in your project. Then add the following to the dependencies block:

dependencies {
    implementation("com.fsryan.ui:segmented-display:x.y.z")
}

About

Basic segmented display for Jetpack Compose Android, iOS, Desktop, and Web

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages