File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import { defineStepper } from "@stepperize/react";
32
32
2 . Define your steps:
33
33
34
34
``` tsx
35
- const { Scoped, useStepper, steps } = defineStepper (
35
+ const { Scoped, useStepper, steps, utils } = defineStepper (
36
36
{ id: " step-1" , title: " Step 1" , description: " Description for step 1" },
37
37
{ id: " step-2" , title: " Step 2" , description: " Description for step 2" },
38
38
{ id: " step-3" , title: " Step 3" , description: " Description for step 3" },
@@ -64,6 +64,7 @@ Stepperize allows you to define a series of steps with unique IDs. When you crea
64
64
- A ` Scoped ` component for context management
65
65
- A ` useStepper ` hook for step control
66
66
- An array of ` steps ` for rendering
67
+ - An ` utils ` object with useful functions
67
68
68
69
The only required field for each step is the ` id ` . You can add any additional properties you need, and they'll be fully typesafe when using the hook.
69
70
@@ -77,4 +78,4 @@ We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) f
77
78
78
79
## License
79
80
80
- Stepperize is [ MIT licensed] ( LICENSE ) .
81
+ Stepperize is [ MIT licensed] ( LICENSE ) .
You can’t perform that action at this time.
0 commit comments