terra-form
Version:
Components for building forms
22 lines (17 loc) • 493 B
Markdown
Generic form field component which handles the layout of a standard form field including errors, help text, label, value and widget placement.
```jsx
import React from 'react';
import Field from 'terra-form/lib/Field';
<Field
label="Do you have any Children?"
labelAttrs={{ className: 'healtheintent-application' }}
error="This field is required"
help="Families are eligible for family package plans"
required
isInline
>
{this.props.children}
</Field>
```