When to use it
Use it when options need descriptions or icons. Use a radio group for short labels.
Native example
Use it when options need descriptions or icons. Use a radio group for short labels.
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 }
)
}Reference
The primary shared and platform-specific options exposed by LumenRadioCardGroup.
| API | Values or type | Default | Description |
|---|---|---|---|
| options / value / 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