import { clsx } from 'clsx'; export interface RadioButtonProps { id?: string; name: string; checked?: boolean; onChange?: (value: T) => void; disabled?: boolean; value?: T; readOnly?: boolean; className?: string; 'aria-describedby'?: string; } export default function RadioButton({ id, value = '' as T, name, checked, onChange, disabled, readOnly, className, 'aria-describedby': ariaDescribedBy, }: RadioButtonProps) { return ( <> { if (!checked) { onChange?.(value); } }} /> ); }