RadioGroup
moleculesNative radios sharing one name as a list, bordered rows with a trailing action and a panel below, or colour swatches.
Spawn profile rows
variant="rows" with note, description, an action snippet outside the label and a below panel the consumer owns.
List, rows and swatches
variant="list" (default) with hint, "rows" with description, "swatch" with color; onfocuschange drives a preview on hover or arrow keys.
The agent writes a step-by-step plan and waits for approval.
States
a disabled option in each variant, no selection yet, and a long label and note wrapping inside a narrow column while the description truncates.
Micro-interactions
data-fx-radio on <html> or any ancestor picks the effect: spring (default), liquid or none.
spring liquid none Props
| Prop | Type | Default | Description |
|---|---|---|---|
options required | RadioOption[] | — | |
value bindable | string | — | |
name | string | `radio-${Math.random().toString(36).slice(2, 8)}` | |
label required | string | — | |
variant | 'list' | 'rows' | 'swatch' | 'list' | `swatch` renders each option as a colour chip with the label as its name. |
action | Snippet<[RadioOption]> | — | |
below | Snippet<[RadioOption]> | — | |
onfocuschange | (value: string) => void | — | Fires once each time a different option becomes active — by keyboard focus or by pointer hover — so a consumer can drive a preview pane. |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
class | string | '' |