import { forwardRef } from "react"; interface RadioButtonProps { name?: string; label?: string; className?: string; defaultValue?: string; value?: string; onChange?: React.ChangeEventHandler; checked?: boolean; } const RadioButton = forwardRef( function radioButton( { name, label, className, defaultValue, value, onChange, checked }, ref, ) { const classNames = `radio ${className}`; const isControlled = checked !== undefined; return ( ); }, ); export default RadioButton;