1 | # Textarea Field
|
2 |
|
3 | Textarea Field component for rendering textareas with standard structured style. Uses the Textarea component.
|
4 | Also exposes attributes specific to the textarea.
|
5 |
|
6 | ## Usage
|
7 |
|
8 | ```jsx
|
9 | import React from 'react';
|
10 | import TextareaField from 'terra-form/lib/TextareaField';
|
11 |
|
12 | <TextareaField
|
13 | name="description"
|
14 | label="Description"
|
15 | labelAttrs={{ className: 'healtheintent-application' }}
|
16 | error="This field is required"
|
17 | cols={20}
|
18 | rows={10}
|
19 | value="I'm a software engineer working at Cerner"
|
20 | inputAttrs={{ className: 'healtheintent-application' }}
|
21 | required
|
22 | />
|
23 | ```
|