import RcCheckbox from '@rc-component/checkbox'; import { CheckboxProps } from '../types'; import { forwardRef } from 'react'; import { InputRef } from '@rc-component/input/lib/interface'; export const Checkbox = forwardRef((props, ref) => { const { label, status = 'default', variant = 'outlined', className, children, ...rest } = props; const displayLabel = label || children; const wrapperClass = [ 'rc-checkbox-wrapper', `checkbox-status-${status}`, `checkbox-variant-${variant}`, rest.disabled ? 'rc-checkbox-wrapper-disabled' : '', className, ] .filter(Boolean) .join(' '); return ( ); }); Checkbox.displayName = 'Checkbox';