Radio
A controlled radio group with accessible markup, custom visual styling, and support for hints and disabled states.
Installation
npx dafink-ui add radioDemo
Composition
<RadioGroup>
</RadioGroup>
Props
| Name | Type | Default | Description |
|---|---|---|---|
| name | string | - | Shared name attribute applied to all radio inputs in the group. |
| value | string | - | Currently selected value (controlled). |
| onValueChange | (v: string) => void | - | Callback fired when the user selects a new option. |
| className | string | "" | Additional classes on the group wrapper. |