Textarea
<Textarea placeholder='textarea component for v2' onChange={() => null} />
<Textarea value='textarea component for v2' onChange={() => null}/>
Example
with autosize
with autosize & maxLength 200
Props
Name | Type | Required? | Default | Description |
---|
autosize | boolean | optional | none | Resizes the height based on content |
disabled | boolean | optional | none | Whether the textarea should be interactive. |
error | boolean | optional | none | Whether the textarea renders an error state. |
name | string | required | none | Value for textarea. |
value | string | optional | none | Name for the input. |
maxLength | number | optional | none | max length of input field |