UIRadioGroup
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
name | string | required | HTML name attribute for the radio group |
options | Array<{ value: string; label: string }> | required | Available options |
value | string | — | Currently selected value |
onChange | (value: string) => void | — | Called 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}/>