When to use it
Use it when each choice needs a description or an icon.
Present a checkbox as a selectable card with supporting text.
Native example
Use it when each choice needs a description or an icon.
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import com.santi020k.lumen.*
@Composable
fun ActivitySummariesCard() {
var checked by remember { mutableStateOf(true) }
LumenCheckboxCard(
label = "Activity summaries",
checked = checked,
onCheckedChange = { checked = it },
modifier = Modifier.fillMaxWidth(),
description = "Receive a digest of your team's updates.",
icon = LumenIconName.Bell
)
}Reference
The primary shared and platform-specific options exposed by LumenCheckboxCard.
| API | Values or type | Default | Description |
|---|---|---|---|
| checked / label / variant | controlled state / name / card style | required / required / outline | Use it when each choice needs a description or an icon. |
Native behavior
Use it when each choice needs a description or an icon.
The whole card is one checkbox, and its description is the hint.
Shared component