feat: added input

This commit is contained in:
원더 2021-01-31 12:46:12 +09:00
parent 322c589f6d
commit f4a340f02f

13
components/Form/Input.tsx Normal file
View 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