Checkbox
Default
Day | Night |
---|---|
![]() |
![]() |
Installation
Backpack Compose is available through Maven Central. Check the main Readme for a complete installation guide.
Usage
Example of a Checkbox:
import net.skyscanner.backpack.compose.checkbox.BpkCheckbox
BpkCheckbox(
text = "Checkbox text",
checked = true,
onCheckedChange = { checked -> },
)
Example of a Checkbox with intermediate state:
import net.skyscanner.backpack.compose.checkbox.BpkCheckbox
BpkCheckbox(
text = "Checkbox text",
checked = true,
onCheckedChange = { checked -> },
)
Example of a Checkbox with custom content:
import net.skyscanner.backpack.compose.checkbox.BpkCheckbox
BpkCheckbox(
checked = true,
onCheckedChange = { checked -> },
) { checked ->
MyCustomContent()
}