Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
FormsAndroid

Radio card

Choose one option from selectable cards.

Public APILumenRadioCardGroupAndroid / Compose

Native example

Use Radio card

Use it when options need descriptions or icons. Use a radio group for short labels.

Radio card rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.runtime.*
import com.santi020k.lumen.*

@Composable
fun WorkspacePlanPicker() {
    var plan by remember { mutableStateOf<String?>("team") }
    LumenRadioCardGroup(
        label = "Workspace plan",
        options = listOf(
            LumenSelectionCardOption("personal", "Personal", "For individual projects"),
            LumenSelectionCardOption("team", "Team", "For a shared workspace"),
            LumenSelectionCardOption("enterprise", "Enterprise", "Contact your administrator", disabled = true)
        ),
        value = plan,
        onValueChange = { plan = it }
    )
}
Android
A workspace plan picker built from radio cards, with one plan unavailable.

Reference

Public API

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

APIValues or typeDefaultDescription
options / value / variantchoices / selected value / card stylerequired / required / outlineUse it when options need descriptions or icons.

Native behavior

Design and accessibility

When to use it

Use it when options need descriptions or icons. Use a radio group for short labels.

Accessibility

Named radio group; each card exposes selected state.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module