Component
RadioButton
A FormaUI radio button — a themed control for choosing one option from a set.
Themed defaults48dp target
import dev.formaui.components.radiobutton.FormaRadioButton
Preview
This toggle is site chrome only — the preview has its own light/dark switch inside.
LIVE PREVIEW
Live preview — ~37 MB development build
Usage
KOTLIN
val options = listOf("Standard", "Priority", "Overnight")var selected by remember { mutableStateOf(options.first()) }Column(Modifier.selectableGroup()) { options.forEach { option -> Row(Modifier.selectable( selected = option == selected, role = Role.RadioButton, onClick = { selected = option }, )) { FormaRadioButton(selected = option == selected, onClick = null) Text(option) } }}
Accessibility
48dp touch target via Material 3's minimum interactive component size; apply Modifier.selectableGroup() to the container so screen readers announce the set and position (e.g. "2 of 4"), and prefer row-level Modifier.selectable with onClick = null so the whole row is one accessible target.