core/components/Form/CheckBox.tsx
2021-03-25 12:58:47 +09:00

13 lines
329 B
TypeScript

import { Field } from 'formik'
const CheckBox = ({ name, ...props }: CheckBoxProps): JSX.Element => {
return <Field type='checkbox' name={name} className='form-checkbox text-koreanbots-blue bg-gray-300 h-4 w-4 rounded' {...props} />
}
interface CheckBoxProps {
name: string
[key: string]: unknown
}
export default CheckBox