1 | # Field
|
2 |
|
3 | Generic form field component which handles the layout of a standard form field including errors, help text, label, value and widget placement.
|
4 |
|
5 | ## Usage
|
6 |
|
7 | ```jsx
|
8 | import React from 'react';
|
9 | import Field from 'terra-form/lib/Field';
|
10 |
|
11 | <Field
|
12 | label="Do you have any Children?"
|
13 | labelAttrs={{ className: 'healtheintent-application' }}
|
14 | error="This field is required"
|
15 | help="Families are eligible for family package plans"
|
16 | required
|
17 | isInline
|
18 | >
|
19 | {this.props.children}
|
20 | </Field>
|
21 | ```
|