Skip to content

mostafaegouda/formik-stepper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Headless Formik Stepper Component

Headless form stepper components using Formik.

Status: dev

Installation

Still under development.
Will be available for install soon.

Demo

Clone the demo folder and run npm install.
Run npm start to start the demo in the development mode.

Components

FormikStepper

Props Type Default value Description
Offcial Formik Component Props ...... ..... Formik Documentation
validationSchemas OptionalObjectSchema[] Required A List of Yup schema objects. Each object validates a single step

Step

Props Type Default value Description
HTML div attributes HTMLAttributes> .... Native HTML attributes for <div> tag

StepperButton.(Next | Prev)

You can target these buttons in CSS using:

  • .stepper-next-btn for Next
  • .stepper-prev-btn for Prev
Properties Type Default value Description
HTML button attributes except onClick and type ButtonHTMLAttributes ..... Native HTML attributes for <button> tag

StepperProgressItem

You can target these items in CSS using:

  • [data-status] for unvisited items
  • [data-status="visited"] for visited items
  • [data-status="active"] for the active item
Properties Type Default value Description
HTML div attributes HTMLAttributes> .... Native HTML attributes for <div> tag

Example

Coming Soon...

About

Headless form stepper components using Formik

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published