import { InputHTMLAttributes, forwardRef, ForwardedRef } from 'react'; import clsx from 'clsx'; import styles from './Radio.module.scss'; interface Props extends InputHTMLAttributes { label: string; } const Radio = forwardRef(({ label, className, ...attrs }: Props, ref: ForwardedRef) => { const { disabled } = attrs; const labelClassName = clsx(styles.label, className, disabled && 'disabled'); return ( ); }); export { Radio, styles as radioStyles }; export type { Props as RadioProps };