Radio
Single-select controls for choosing one option from a set.
When to Use
- When users must select exactly one option from a small list
- As an alternative to a select dropdown for 2-5 options
- For settings or preference toggles
Import
Examples
Basic Group
Button Style
Solid Button Style
Disabled
API
RadioProps
checked—boolean— Checked state (controlled)defaultChecked—boolean— Default checked statevalue—any— Radio valueonChange—(e: RadioChangeEvent) => void— Change handlerdisabled—boolean— Disable the radio
Radio.Group Props
options—(string | { label, value, disabled })[]— Option listvalue—any— Selected value (controlled)defaultValue—any— Default valueonChange—(e: RadioChangeEvent) => void— Change handleroptionType—"default" | "button"— Radio style (default:"default")buttonStyle—"outline" | "solid"— Button style (default:"outline")size—"small" | "middle" | "large"— Size (button mode only)disabled—boolean— Disable all radios