import { type ChangeEvent } from "react"; import { type IAccessibilityConfigBase } from "../../typings/accessibility.js"; /** * @internal */ export interface IUiRadioProps { /** Whether this radio is selected. */ checked: boolean; /** Fires when the user toggles the radio. */ onChange?: (e: ChangeEvent) => void; /** * `name` attribute shared by a group of mutually exclusive radios — * required by HTML radios. */ name?: string; /** Value sent with the change event — the picked option's identifier. */ value?: string; disabled?: boolean; accessibilityConfig?: IAccessibilityConfigBase; tabIndex?: number; /** Optional inline label rendered next to the radio circle. */ label?: string; /** * Id set on the native input. When omitted a stable id is generated. * Pass an explicit id when an ancestor renders its own * `