1 | # Number Field
|
2 |
|
3 | Number Field component for rendering numeric inputs (inputs with type=number) with standard structured style. Uses the Input element. Also exposes attributes specific to the input.
|
4 |
|
5 | ## Usage
|
6 |
|
7 | ```jsx
|
8 | import React from 'react';
|
9 | import NumberField from 'terra-form/lib/NumberField';
|
10 |
|
11 | <NumberField
|
12 | label="Sales Tax Rate"
|
13 | labelAttrs={{ className: 'healtheintent-application' }}
|
14 | name="sales_tax_rate"
|
15 | value={0.075}
|
16 | error="This field is required"
|
17 | help="Your county's office may have this information"
|
18 | max={1}
|
19 | min={0}
|
20 | step={0.1}
|
21 | inputAttrs={{ className: 'healtheintent-application' }}
|
22 | isInline
|
23 | required
|
24 | />
|
25 | ```
|