UNPKG

493 BMarkdownView Raw
1# Field
2
3Generic 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
8import React from 'react';
9import 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```