When to use it
Use it when options need descriptions or icons. Use a radio group for short labels.
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 options need descriptions or icons. Use a radio group for short labels.
import LumenUI
import SwiftUI
struct RadioCardExample: View {
@State private var plan = "team"
var body: some View {
LumenRadioCardGroup("Workspace plan", selection: $plan, options: [
.init(id: "personal", label: "Personal", description: "A focused space for one creator.", icon: .user),
.init(id: "team", label: "Team", description: "Shared work and review for your team.", icon: .users),
.init(id: "enterprise", label: "Enterprise", description: "Contact the workspace owner.", isDisabled: true)
])
}
}Reference
The primary shared and platform-specific options exposed by LumenRadioCardGroup.
| API | Values or type | Default | Description |
|---|---|---|---|
| options / selection / variant | choices / selected value / card style | required / required / outline | Use it when options need descriptions or icons. |
Native behavior
Use it when options need descriptions or icons. Use a radio group for short labels.
Named radio group; each card exposes selected state.
Shared component