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
You’ll need to install React separately since it isn't included in the package.
25
25
26
+
Note for **Next.js** users, if you are using Next.js version 13 or later, you will have to use the `use client` feature to ensure proper compatibility.
27
+
26
28
## Usage
27
29
28
30
React Stepper can run in a very basic mode by just providing the `steps` and `currentStepIndex` props like this:
@@ -31,18 +33,18 @@ React Stepper can run in a very basic mode by just providing the `steps` and `cu
31
33
<Stepper
32
34
steps={[
33
35
{
34
-
label:"Step 1",
35
-
description:"This is Step 1",
36
+
stepLabel:"Step 1",
37
+
stepDescription:"This is Step 1",
36
38
completed:true,
37
39
},
38
40
{
39
-
label:"Step 2",
40
-
description:"This is Step 2",
41
+
stepLabel:"Step 2",
42
+
stepDescription:"This is Step 2",
41
43
completed:false,
42
44
},
43
45
{
44
-
label:"Step 3",
45
-
description:"This is Step 3",
46
+
stepLabel:"Step 3",
47
+
stepDescription:"This is Step 3",
46
48
completed:false,
47
49
},
48
50
]}
@@ -52,8 +54,8 @@ React Stepper can run in a very basic mode by just providing the `steps` and `cu
52
54
53
55
The `steps` array is an array of objects with following keys:
54
56
55
-
-`label` - A mandatory string representing the label/title of the step.
56
-
-`description` - Optional extra information or description for the step.
57
+
-`stepLabel` - A mandatory string representing the label/title of the step.
58
+
-`stepDescription` - Optional extra information or description for the step.
57
59
-`completed` - Boolean flag for indicating step completion status.
58
60
59
61
You can customize each step node with your own DOM element using the `renderNode` prop
@@ -62,7 +64,7 @@ You can customize each step node with your own DOM element using the `renderNod
0 commit comments