@@ -16,25 +16,28 @@ After adding import into your project you can use it simply like:
16
16
17
17
Table below contains all types of the props available in Stepper component.
18
18
19
- | Name | Type | Default | Description |
20
- | :------------- | :-------------------------- | :------ | :---------------------------------------------------------------------------- |
21
- | dataTest | ` string ` | | Optional prop for testing purposes. |
22
- | id | ` string ` | | Set ` id ` for ` Stepper ` |
23
- | maxWidth | ` boolean ` | ` 108px ` | Set ` max-width ` for ` Stepper ` wrapper |
24
- | active | ` boolean ` | | Changes the color of the ` Stepper ` |
25
- | defaultValue | ` number ` | ` 0 ` | Specifies the value of the Stepper. [ See Functional specs] ( #functional-specs ) |
26
- | disabled | ` boolean ` | ` false ` | If ` true ` , the Stepper will be disabled. |
27
- | maxValue | ` number ` | ` ∞ ` | Specifies the maximum value for the Stepper. |
28
- | minValue | ` number ` | ` -∞ ` | Specifies the minimum value for the Stepper. |
29
- | name | ` string ` | | The name for the Stepper. |
30
- | onBlur | ` event => void \| Promise ` | | Function for handling onBlur event. |
31
- | onChange | ` number => void \| Promise ` | | Function for handling onClick event. |
32
- | onFocus | ` event => void \| Promise ` | | Function for handling onFocus event. |
33
- | step | ` number ` | ` 1 ` | Specifies the value of step to increment and decrement. |
34
- | titleDecrement | ` string \| (any => string) ` | | Specifies ` aria-label ` property on decrement ` Button ` . |
35
- | titleIncrement | ` string \| (any => string) ` | | Specifies ` aria-label ` property on increment ` Button ` . |
36
- | ariaLabelValue | ` string ` | | Optional prop for ` aria-label ` value. |
37
- | ariaLabelledBy | ` string ` | | Optional prop for ` aria-labelledby ` value. |
19
+ | Name | Type | Default | Description |
20
+ | :------------------- | :-------------------------- | :------ | :---------------------------------------------------------------------------------------- |
21
+ | dataTest | ` string ` | | Optional prop for testing purposes. |
22
+ | id | ` string ` | | Set ` id ` for ` Stepper ` . |
23
+ | maxWidth | ` boolean ` | ` 108px ` | Set ` max-width ` for ` Stepper ` wrapper. |
24
+ | active | ` boolean ` | | Changes the color of the ` Stepper ` . |
25
+ | defaultValue | ` number ` | ` 0 ` | Specifies the value of the Stepper. [ See Functional specs] ( #functional-specs ) |
26
+ | disabled | ` boolean ` | ` false ` | If ` true ` , the Stepper will be disabled. |
27
+ | maxValue | ` number ` | ` ∞ ` | Specifies the maximum value for the Stepper. |
28
+ | minValue | ` number ` | ` -∞ ` | Specifies the minimum value for the Stepper. |
29
+ | name | ` string ` | | The name for the Stepper. |
30
+ | onBlur | ` event => void \| Promise ` | | Function for handling onBlur event. |
31
+ | onChange | ` number => void \| Promise ` | | Function for handling onClick event. |
32
+ | onFocus | ` event => void \| Promise ` | | Function for handling onFocus event. |
33
+ | step | ` number ` | ` 1 ` | Specifies the value of step to increment and decrement. |
34
+ | titleDecrement | ` string ` | | Specifies ` aria-label ` property on decrement ` Button ` . See accessibility tab. |
35
+ | titleIncrement | ` string ` | | Specifies ` aria-label ` property on increment ` Button ` . See accessibility tab. |
36
+ | ariaLabelValue | ` string ` | | Optional prop for ` aria-label ` value for input field. See accessibility tab. |
37
+ | ariaLabelledby | ` string ` | | Optional prop for ` aria-labelledby ` value for input field. See accessibility tab. |
38
+ | ariaDescribedby | ` string ` | | Optional prop for ` aria-describedby ` value for input field. See accessibility tab. |
39
+ | descriptionDecrement | ` string ` | | Optional prop for ` aria-describedby ` value for decrement ` Button ` . See accessibility tab. |
40
+ | descriptionIncrement | ` string ` | | Optional prop for ` aria-describedby ` value for increment ` Button ` . See accessibility tab. |
38
41
39
42
## Functional specs
40
43
@@ -67,7 +70,7 @@ Table below contains all types of the props available in `StepperStateless` comp
67
70
| name | ` string ` | | The name for the Stepper. |
68
71
| onBlur | ` event => void \| Promise ` | | Function for handling onBlur event. |
69
72
| onChange | ` number => void \| Promise ` | | Function for handling onClick event. |
70
- | onDecrement | ` event => void \| Promise ` | | Function for handling decrement event.l |
73
+ | onDecrement | ` event => void \| Promise ` | | Function for handling decrement event. |
71
74
| onFocus | ` event => void \| Promise ` | | Function for handling onFocus event. |
72
75
| onIncrement | ` event => void \| Promise ` | | Function for handling increment event. |
73
76
| onKeyDown | ` event => void \| Promise ` | | Function for handling onKeyDown event present on input. |
@@ -80,12 +83,11 @@ Table below contains all types of the props available in `StepperStateless` comp
80
83
| ariaDescribedby | ` string ` | | Optional prop for ` aria-describedby ` value for input field. See accessibility tab. |
81
84
| descriptionDecrement | ` string ` | | Optional prop for ` aria-describedby ` value for decrement ` Button ` . See accessibility tab. |
82
85
| descriptionIncrement | ` string ` | | Optional prop for ` aria-describedby ` value for increment ` Button ` . See accessibility tab. |
83
- | ariaDescribedby | ` string ` | | Optional prop for ` aria-describedby ` value for input field. See accessibility tab. |
84
86
85
87
### Usage:
86
88
87
89
``` jsx
88
- < StepperStateless value= { " 2 adults" } / >
90
+ < StepperStateless value= " 2 adults" / >
89
91
```
90
92
91
93
## Helper functions
0 commit comments