You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Using [npm](https://www.npmjs.com/):
21
21
## Usage
22
22
23
23
```js
24
-
<Steps totalSteps={3}>
24
+
<Steps total={3}>
25
25
<Step order={1} component={Step1} />
26
26
<Step order={2} component={Step2} />
27
27
<Step order={3} component={Step3} />
@@ -33,11 +33,11 @@ Using [npm](https://www.npmjs.com/):
33
33
34
34
### `<Steps />`
35
35
36
-
This is the wrapper component. You must define every step component under `<Steps />` component. It takes `totalSteps` as a prop which must match the number of `Step` components inside.
36
+
This is the wrapper component. You must define every step component under `<Steps />` component. It takes `total` as a prop which must match the number of `Step` components inside.
|**`text`**_String_| the text that will button render |
136
-
|**`prev`**_Boolean_| gives the button 'Go to Previous Step' functionality. It doesn't show in the first step component.|
137
-
|**`next`**_Boolean_| gives the button 'Go to Next Step' functionality. It doesn't show in the last step component.|
136
+
|**`prev`**_Boolean_| gives the button 'Go to Previous Step' functionality. Disabled in the first step. |
137
+
|**`next`**_Boolean_| gives the button 'Go to Next Step' functionality. Disabled in the last step. |
138
138
|_any props_| all the other props passed to the **Button** component will be passed any props to the button element |
139
139
140
140
<br />
@@ -152,8 +152,8 @@ Example usages:
152
152
<Navigation before="HEY " after=" HI"/>// if you have 3 steps, it renders 3 buttons, each step number has 'HEY' before and 'HI' after (HEY 1 HI, HEY 2 HI, HEY 3 HI)
0 commit comments