Skip to content

Commit 94b6063

Browse files
committed
Fixing step connector typings
1 parent 8793a34 commit 94b6063

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/stepConnector/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,25 @@
2828
*/
2929

3030
import {useEffect, useMemo, useRef, useState} from "react";
31+
3132
import styles from "./style.module.scss";
3233

3334
type Persistence = "session" | "none";
3435

3536
type Props = {
3637
children: React.ReactNode;
37-
/** Start numbering from this value. @defaultValue 1 */
38-
startAt?: number;
39-
/** Which heading level to connect (CSS selector). @defaultValue 'h2' */
40-
selector?: string;
41-
/** Show numeric labels inside circles. Set false for blank circles. @defaultValue true */
42-
showNumbers?: boolean;
4338
/** Allow users to check off steps (circle becomes a button). @defaultValue false */
4439
checkable?: boolean;
4540
/** Completion storage: 'session' | 'none'. @defaultValue 'session' */
4641
persistence?: Persistence;
42+
/** Which heading level to connect (CSS selector). @defaultValue 'h2' */
43+
selector?: string;
44+
/** Show numeric labels inside circles. Set false for blank circles. @defaultValue true */
45+
showNumbers?: boolean;
4746
/** Show a small "Reset steps" action when checkable. @defaultValue true */
4847
showReset?: boolean;
48+
/** Start numbering from this value. @defaultValue 1 */
49+
startAt?: number;
4950
};
5051

5152
export function StepComponent({
@@ -192,4 +193,3 @@ export function StepComponent({
192193
export function StepConnector(props: Props) {
193194
return <StepComponent {...props} />;
194195
}
195-

0 commit comments

Comments
 (0)