23 lines
570 B
23 lines
570 B
import React from "react"; |
|
import _ from "lodash"; |
|
|
|
export default function Textarea({ placeholder, onChange, value, name }) { |
|
return ( |
|
<> |
|
<textarea |
|
className={_.join( |
|
[ |
|
"my-2 border border-gray-300 rounded-md text-xs lg:text-sm py-6 px-3 outline-none focus:border-greenB9", |
|
// backgroundColor, |
|
], |
|
" " |
|
)} |
|
vale={value} |
|
name={name} |
|
onChange={(e) => onChange(e.target.name, e.target.value)} |
|
rows={10} |
|
placeholder={placeholder} |
|
/> |
|
</> |
|
); |
|
}
|
|
|