Skip to content

UIRadioGroup

Default
PropTypeDefaultDescription
namestringrequiredHTML name attribute for the radio group
optionsArray<{ value: string; label: string }>requiredAvailable options
valuestringCurrently selected value
onChange(value: string) => voidCalled when selection changes
import { UIRadioGroup } from "tango-api";
<UIRadioGroup
name="priority"
options={[
{ value: "low", label: "Low" },
{ value: "medium", label: "Medium" },
{ value: "high", label: "High" },
]}
value={priority}
onChange={setPriority}
/>