Headless form stepper components using Formik.
Status: dev
Still under development.
Will be available for install soon.
Clone the demo folder and run npm install.
Run npm start to start the demo in the development mode.
| 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 |
| Props | Type | Default value | Description |
|---|---|---|---|
| HTML div attributes | HTMLAttributes> | .... | Native HTML attributes for <div> tag |
You can target these buttons in CSS using:
.stepper-next-btnfor Next.stepper-prev-btnfor Prev
| Properties | Type | Default value | Description |
|---|---|---|---|
HTML button attributes except onClick and type |
ButtonHTMLAttributes | ..... | Native HTML attributes for <button> tag |
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 |
Coming Soon...