UNPKG

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