2022-11-25 20:25:03 +00:00
|
|
|
import { forwardRef } from 'react';
|
|
|
|
import * as React from 'react';
|
2022-06-05 18:56:42 +00:00
|
|
|
import classNames from 'classnames';
|
|
|
|
import styles from './styles.module.css';
|
|
|
|
|
2022-07-02 22:27:29 +00:00
|
|
|
type Props = Omit<React.ComponentProps<'input'>, 'type'>;
|
|
|
|
|
|
|
|
export default forwardRef<HTMLInputElement, Props>(({ className, ...props }, ref) => (
|
|
|
|
<input
|
|
|
|
ref={ref}
|
|
|
|
type={'checkbox'}
|
|
|
|
className={classNames('form-input', styles.checkbox_input, className)}
|
|
|
|
{...props}
|
|
|
|
/>
|
2022-06-05 18:56:42 +00:00
|
|
|
));
|