Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-deshmukh committed Nov 30, 2024
1 parent 71e2b03 commit 290a99d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/Stepper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,28 @@ export const Step = ({ children }) => {
Stepper.Step = Step;

Stepper.propTypes = {
/**
* The steps of the stepper. Should be Stepper.Step components.
*/
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.element),
PropTypes.element,
]).isRequired,
/**
* Function to be called when the stepper is finished.
*/
onFinish: PropTypes.func.isRequired,
/**
* Function to validate each step. Should return true if valid, false otherwise.
*/
stepValidator: PropTypes.func,
/**
* Error message to display when a step is invalid.
*/
stepErrMessage: PropTypes.string,
/**
* Stepper orientation
*/
orientation: PropTypes.oneOf(["horizontal", "vertical"]),
};

Expand Down

0 comments on commit 290a99d

Please sign in to comment.