mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
20 lines
347 B
TypeScript
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
|