mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
feat: added input
This commit is contained in:
parent
322c589f6d
commit
f4a340f02f
13
components/Form/Input.tsx
Normal file
13
components/Form/Input.tsx
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { Field } from 'formik'
|
||||||
|
|
||||||
|
const Input = ({ name, placeholder }:InputProps):JSX.Element => {
|
||||||
|
return <Field name={name} className='text-black w-full h-10 border border-grey-light rounded px-3 relative focus:shadow outline-none' placeholder={placeholder}/>
|
||||||
|
}
|
||||||
|
|
||||||
|
interface InputProps {
|
||||||
|
name: string
|
||||||
|
placeholder?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Input
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user