Radio
A styled native <input type="radio">. Pass label / description to compose field helpers, or use the bare control in custom layouts.
Usage
Control only
Invalid state
Choose an option to continue.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label |
string |
— | Composes field + field-label |
description |
string |
— | Composes field-description |
errorMessage |
string |
— | Manual error copy |
showError |
bool |
true only when errorMessage is set |
Radio groups rarely want a message on every option |
name |
string |
— | Input name |
value |
string |
"1" |
Option value |
checked |
bool |
false |
Initial checked state |
errorKey |
string |
— | Override validation key |
All standard HTML attributes pass through to the control.