Skip to content

RoundCheckboxes allow users to select one or more items from a set. RoundCheckboxes can turn an option on or off.

License

Notifications You must be signed in to change notification settings

kosher9/Compose-Round-CheckBox

Repository files navigation

Compose-Round-CheckBox

RoundCheckboxes allow users to select one or more items from a set. RoundCheckboxes can turn an option on or off. It has a great and smooth animation that can make your app have a better look. :)

Preview

round_checkbox_preview.mp4

Gradle Setup

To get a Git project into your build:

  • Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
  repositories {
      ...
      maven { url 'https://jitpack.io' }
  }
}
  • Step 2. Add the dependency
dependencies {
	  implementation 'com.github.kosher9:Compose-Round-CheckBox:Tag'
}

To use the Compose-Round-CheckBox inside your Composable, here is a quick example:

var roundCheckBoxState by remember { mutableStateOf(false) }
RoundCheckBox(
                modifier = Modifier.width(60.dp),
                isChecked = roundCheckBoxState,
                onClick = { roundCheckBoxState = !roundCheckBoxState },
                enabled = true
            )

Check out more examples here

📝 License

This project is MIT licensed.

About

RoundCheckboxes allow users to select one or more items from a set. RoundCheckboxes can turn an option on or off.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages