UNPKG

terra-form

Version:
22 lines (17 loc) 493 B
# Field Generic form field component which handles the layout of a standard form field including errors, help text, label, value and widget placement. ## Usage ```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> ```