Skip to content

Commit fe7d1ca

Browse files
committed
Adding an example showing the configurations implementation
1 parent cd44e18 commit fe7d1ca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ onMovePrevious={(data)=>{console.log(data)}}
4949
//onSubmit is optional, only implement it whever you need to use it
5050
onSubmit={()=>{console.log('Submiting')}}
5151
/>
52+
//Implementation with config object
53+
<MultiSteps
54+
//Move to the next item
55+
onMoveNext={(data)=>{console.log(data) }}
56+
//Move to the previous item
57+
onMovePrevious={(data)=>{console.log(data)}}
58+
//onSubmit is optional, only implement it whever you need to use it
59+
onSubmit={()=>{console.log('Submiting')}}
60+
config ={{
61+
nextButtonLabel: 'Next Section',
62+
previousButtonLabel: 'Previous Section',
63+
submitButtonLabel: 'Done'
64+
}}
65+
/>
5266
```
5367
# Example
5468
```js

0 commit comments

Comments
 (0)