import React , { TextareaHTMLAttributes } from 'react' ; import './styles.css' ; interface TextareaProps extends TextareaHTMLAttributes < HTMLTextAreaElement > { name : string ; label : string ; } const Textarea = ( { label , name , ... rest } ) => { return ( < div className = "textarea-block" > < label htmlFor = { name } > { label } < /label> < textarea id = { name } { ... rest } /> < /div>); } ; export default Textarea ;