-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ee7978
commit 0542702
Showing
4 changed files
with
181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Initial typings by dmk99 - https://github.com/jcmcneal/react-step-wizard/issues/31#issuecomment-505399131 | ||
import * as React from "react" | ||
|
||
export type StepWizardProps = Partial<{ | ||
className: string | ||
|
||
hashKey: string | ||
initialStep: number | ||
instance: (wizard: StepWizardProps) => void | ||
isHashEnabled: boolean | ||
isLazyMount: boolean | ||
nav: JSX.Element | ||
|
||
onStepChange: (stepChange: { | ||
previousStep: number | ||
activeStep: number | ||
}) => void | ||
|
||
transitions: { | ||
enterRight?: string | ||
enterLeft?: string | ||
exitRight?: string | ||
exitLeft?: string | ||
} | ||
|
||
children: JSX.Element[] | ||
}> | ||
|
||
export type StepWizardChildProps<T extends Record<string, any> = {}> = { | ||
isActive: boolean | ||
currentStep: number | ||
totalSteps: number | ||
firstStep: () => void | ||
lastStep: () => void | ||
nextStep: () => void | ||
previousStep: () => void | ||
goToStep: (step: number) => void | ||
hashKey?: string | ||
} & T | ||
|
||
export declare function StepWizard(props: StepWizardProps): JSX.Element | ||
export default StepWizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters