Skip to content

Commit a23af02

Browse files
committed
fix react-bootstrap#1850 wording and paragraph for improved form documentation
1 parent 420903a commit a23af02

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/src/sections/FormSection.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ export default function FormSection() {
1212
<Anchor id="forms">Forms</Anchor> <small>FormGroup, FormControl, ControlLabel</small>
1313
</h1>
1414

15-
<p>The <code>{'<FormControl>'}</code> component renders a form control with Bootstrap styling. The <code>{'<FormGroup>'}</code> component wraps a form control with proper spacing, along with support for a label, help text, and validation state. To ensure accessibility, set <code>controlId</code> on <code>{'<FormGroup>'}</code>, and use <code>{'<ControlLabel>'}</code> for the label. To retrieve the DOM node for a <code>{'<FormControl>'}</code>, set a <code>ref</code> and use <code>getDOMNode</code> or <code>findDOMNode</code> as needed.</p>
15+
<p>
16+
The <code>{'<FormControl>'}</code> component renders a form control with Bootstrap styling.
17+
The <code>{'<FormGroup>'}</code> component wraps a form control with proper spacing, along with support for a label, help text, and validation state. To ensure accessibility, set <code>controlId</code> on <code>{'<FormGroup>'}</code>, and use <code>{'<ControlLabel>'}</code> for the label.
18+
</p>
19+
<p>
20+
If you need the value of a <code>{'<FormControl>'}</code>, attach a <code>ref</code> to it.
21+
Then call <code>getDOMNode</code> or <code>findDOMNode</code> to retrieve the <code>{'<FormControl>'}</code>'s node.
22+
</p>
23+
1624
<ReactPlayground codeText={Samples.FormBasic} />
1725

1826
<h3><Anchor id="forms-props">Props</Anchor></h3>

0 commit comments

Comments
 (0)