core/components/Form/CheckBox.tsx
SKINMAKER b421d1ab64
chore: apply prettier (#637)
* chore: apply prettier

* chore: edit ready comment

* chore: move ts comment
2023-11-29 22:04:33 +09:00

20 lines
347 B
TypeScript

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