1 | # Fieldset
|
2 |
|
3 | Generic form fieldset component which handles the layout of a standard form fieldset including errors, help text, legend, value and widget placement.
|
4 |
|
5 | ## Usage
|
6 |
|
7 | ```jsx
|
8 | import React from 'react';
|
9 | import Fieldset from 'terra-form/lib/Fieldset';
|
10 |
|
11 | <Fieldset
|
12 | legend="Do you have any Children?"
|
13 | legendAttrs={{ 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 | </Fieldset>
|
21 | ```
|