Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
FormsAndroid

Checkbox card

Present a checkbox as a selectable card with supporting text.

Public APILumenCheckboxCardAndroid / Compose

Native example

Use Checkbox card

Use it when each choice needs a description or an icon.

Checkbox card rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
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
    )
}
Android
A full-width checkbox card with an icon and description for an optional notification digest.

Reference

Public API

The primary shared and platform-specific options exposed by LumenCheckboxCard.

APIValues or typeDefaultDescription
checked / label / variantcontrolled state / name / card stylerequired / required / outlineUse it when each choice needs a description or an icon.

Native behavior

Design and accessibility

When to use it

Use it when each choice needs a description or an icon.

Accessibility

The whole card is one checkbox, and its description is the hint.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module