Get ready to take your form-building game to the next level with this revolutionary React component. With its seamless integration with the powerful Formik library, you'll be building forms faster and more efficiently than ever before. But that's not all - our unique validationSchema functionality means that the component won't advance to the next step unless all entries are properly validated. It's like having a personal form-checker built right in!
And don't just take our word for it - check out the example below to see the full range of props and experience the magic of the React Formik Stepper Component for yourself.
Using npm:
npm install formik-stepper
Using yarn:
yarn add formik-stepper
Import the necessary styles:
import "formik-stepper/dist/style.css";
Property | Type | Default Value | Description |
---|---|---|---|
Formik ...Props |
Various | N/A | Formik Props |
withStepperLine |
Boolean | false |
Show or hide the stepper line |
nextButton |
Object | N/A | Button Props |
prevButton |
Object | N/A | Button Props |
submitButton |
Object | N/A | Button Props |
Property | Type | Default Value | Description |
---|---|---|---|
label |
String | N/A | The text label of the step |
icon |
JSX Element | Step Number | Icon to display in the step circle |
style |
CSS Properties | N/A | CSS Properties |
Property | Type | Default Value | Description |
---|---|---|---|
label |
String | N/A | The text label of the button |
style |
CSS Properties | N/A | CSS Properties |
Property | Type | Default Value | Description |
---|---|---|---|
type |
String | text |
Input Types |
label |
String | N/A | The text label of the input field |
placeholder |
String | Value of label |
The text placeholder of the input field |
floating |
Boolean | false |
Enable floating input style |
component |
JSX Element | null |
Custom input component |