Skip to content

Commit e717706

Browse files
committed
Add on step change event listener in playground
1 parent 66e8652 commit e717706

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playground/modules/wizard/simple/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import Section from '../../common/section';
77
const SimpleSection: React.FC = () => {
88
return (
99
<Section title="Simple wizard" description="mix of async and sync steps">
10-
<Wizard footer={<Footer />}>
10+
<Wizard
11+
footer={<Footer />}
12+
onStepChange={(stepIndex) => alert(`New step index is ${stepIndex}`)}
13+
>
1114
<AsyncStep number={1} />
1215
<Step number={2} />
1316
<AsyncStep number={3} />

0 commit comments

Comments
 (0)