mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
feat: added textarea
This commit is contained in:
parent
49b383f8ef
commit
fac5ac45b1
13
components/Form/TextArea.tsx
Normal file
13
components/Form/TextArea.tsx
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { Field } from 'formik'
|
||||||
|
|
||||||
|
const TextArea = ({ name, placeholder }:TextAreaProps):JSX.Element => {
|
||||||
|
return <Field as='textarea' name={name} className='text-black w-full border border-grey-light rounded px-4 py-3 relative focus:border-blue focus:shadow min-h-2 max-h-3' placeholder={placeholder} />
|
||||||
|
}
|
||||||
|
|
||||||
|
interface TextAreaProps {
|
||||||
|
name: string
|
||||||
|
placeholder?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export default TextArea
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user