mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
feat: added checkbox
This commit is contained in:
parent
d1eb3e3bb0
commit
322c589f6d
12
components/Form/CheckBox.tsx
Normal file
12
components/Form/CheckBox.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { Field } from 'formik'
|
||||||
|
|
||||||
|
const CheckBox = ({ name, ...props }:CheckBoxProps):JSX.Element => {
|
||||||
|
return <Field type='checkbox' name={name} className='mr-1 h-4 w-4 rounded' {...props}/>
|
||||||
|
}
|
||||||
|
|
||||||
|
interface CheckBoxProps {
|
||||||
|
name: string
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
|
||||||
|
export default CheckBox
|
||||||
Loading…
x
Reference in New Issue
Block a user