import { Ref } from 'react'; import classNames from 'classnames'; import { CheckboxProps as ReakitCheckboxProps, Checkbox as ReakitCheckbox, } from 'reakit/Checkbox'; import { forwardRefWithAs, PropsWithAs } from '../utils'; interface CheckboxProps extends ReakitCheckboxProps { customClassName?: string; } function CheckboxComponent( { as: Type = 'input', checked, className, customClassName, ...props }: PropsWithAs, ref: Ref ) { return ( ); } export const Checkbox = forwardRefWithAs( CheckboxComponent );