Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
FormsApple

Checkbox card

Present a checkbox as a selectable card with supporting text.

Public APILumenCheckboxCardApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple Vision · visionOS 1+

Native example

Use Checkbox card

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

Checkbox card rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
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)
        }
    }
}
Apple
An outline checkbox card with an icon and caption add-on above a soft card without one.

Reference

Public API

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

APIValues or typeDefaultDescription
isOn / 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 NativeAndroid / Compose Web
Apple docsSwiftUI package