CamoRadio
A single radio, for custom layouts (a radio inside a card). Prefer CamoRadioGroup, which adds the keyboard
and the "2 of 3" announcement. A null onClick makes it display-only, for a parent row that handles it.
API
- Kotlin
- Dart
public fun CamoRadio(
selected: Boolean,
onClick: (() -> Unit)?,
modifier: Modifier = Modifier,
label: String? = null,
labelSpans: List<CamoSpan>? = null,
enabled: Boolean = true,
interactionSource: MutableInteractionSource? = null,
)
| Name | Type | Default |
|---|---|---|
selected | Boolean | required |
onClick | (() -> Unit)? | |
modifier | Modifier | Modifier |
label | String? | null |
labelSpans | List<CamoSpan>? | null |
enabled | Boolean | true |
interactionSource | MutableInteractionSource? | null |
Design notes
Why CamoRadio works this way, its states and its edge cases: contributor docs.