0.8.0 • Published 26 days ago

formkit-multistep v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
26 days ago

FormKitMultiStep

FormKitMultiStep is a Vue 3 component focused on creating schema-based multi-step forms with FormKit. It grew from discussions and examples in a number of FormKit GitHub issues, so thank you to that team for the starting point and a great library in FormKit.

FormKitMultiStep is experimental, rather opinionated, and is subject to rapid changes. Use it at your own discretion.

Here are some things FormKitMultiStep currently includes:

  • Multi-step functionality via useSteps plugin
  • Pre-pop functionality via usePrepop plugin, including pre-pop from URL params
  • A built-in $submit function with:
    • Ability to pass a function to prep form data
    • Control over post-submit redirection with param substitution
  • Simple mapping of error codes to messages defined on the form schema (if provided $submit is used)
  • Use an inputMap on the form schema to dynamically control which inputs are enabled based on a key passed to $inputIsEnabled
  • Map redirect URLs to specific form values via redirectMap on the form schema (if provided $submit is used)
  • Pass additional form-wide metadata in a type: 'meta' top-level schema node, use as $meta.myField
  • Utility to populate schema values from url params: $urlParam("pitch", "Default text")

FormKitMultiStep is exported as a component library with vite and available on NPM as formkit-multistep. To play around with it, clone this repo and then do the following to bring up App.vue:

npm install
npm run dev
0.8.0

26 days ago

0.7.2

7 months ago

0.7.1

7 months ago

0.7.0

8 months ago

0.5.0

12 months ago

0.4.5

12 months ago

0.6.2

12 months ago

0.4.4

1 year ago

0.6.1

12 months ago

0.4.3

1 year ago

0.6.0

12 months ago

0.3.8

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.2

1 year ago

0.3.6

1 year ago

0.3.7

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.1.12

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago