1 | # Input
|
2 |
|
3 | Generic input which represents an HTML input element directly.
|
4 |
|
5 | ## Usage
|
6 |
|
7 | ```jsx
|
8 | import React from 'react';
|
9 | import Input from 'terra-form/lib/Input';
|
10 |
|
11 | <Input
|
12 | name="foo"
|
13 | defaultValue="bar"
|
14 | required
|
15 | />
|
16 |
|
17 | <Input
|
18 | name="foo"
|
19 | value="bar"
|
20 | onChange={this.updateFoo}
|
21 | required
|
22 | isInline
|
23 | />
|
24 | ```
|