Skip to content

Formik stepper, Form with Multiple Steps, This is a reusable and scalable React component based on the formik library

License

Notifications You must be signed in to change notification settings

Riyad-Arafat/formik-stepper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introducing the Incredible React Formik Stepper Component!

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.

Installation

Using npm:

npm install formik-stepper

Using yarn:

yarn add formik-stepper

Style

Import the necessary styles:

import "formik-stepper/dist/style.css";

FormikStepper Props

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

FormikStep 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

Button Props

Property Type Default Value Description
label String N/A The text label of the button
style CSS Properties N/A CSS Properties

InputField Props

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