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.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Use it when each choice needs a description or an icon.
import LumenUI
import SwiftUI
struct CheckboxCardExample: View {
@State private var notify = true
@State private var preview = false
var body: some View {
VStack(spacing: LumenSpacing.md) {
LumenCheckboxCard("Release notifications", isOn: $notify,
description: "Send the team a summary when a release is ready.", icon: .bell) {
LumenText("Delivered by email", variant: .caption, tone: .muted)
}
LumenCheckboxCard("Private preview", isOn: $preview,
description: "Available to the review team.", variant: .soft)
}
}
}Reference
The primary shared and platform-specific options exposed by LumenCheckboxCard.
| API | Values or type | Default | Description |
|---|---|---|---|
| isOn / 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