import clsx from 'clsx'; import { CSSProperties } from 'react'; import { omit } from '../utils/mixins'; interface Style extends CSSProperties { input?: CSSProperties; label?: CSSProperties; } export interface RadioProps extends React.InputHTMLAttributes { checked?: boolean; className?: string; disabled?: boolean; label?: string; name?: string; style?: Style; value?: string; } export function Radio({ checked = false, className, disabled = false, label, name, style, value, ...restProps }: RadioProps) { return (
{label && ( )}
); } export default Radio;