Radio

A controlled radio group with accessible markup, custom visual styling, and support for hints and disabled states.

Installation

npx dafink-ui add radio

Demo

Composition

<RadioGroup>
<RadioItem />
</RadioGroup>

Props

NameTypeDefaultDescription
namestring-Shared name attribute applied to all radio inputs in the group.
valuestring-Currently selected value (controlled).
onValueChange(v: string) => void-Callback fired when the user selects a new option.
classNamestring""Additional classes on the group wrapper.