-
Notifications
You must be signed in to change notification settings - Fork 0
/
formkit.config.js
55 lines (46 loc) · 1.54 KB
/
formkit.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { generateClasses } from "@formkit/themes";
import defaultTheme from "@/assets/js/formkit-theme.js";
import customInput from "@/assets/js/formkit-custom.js";
// ----------------- Addons --------------------------- //
// https://formkit.com/plugins/auto-animate
import { createAutoAnimatePlugin } from "@formkit/addons";
// https://formkit.com/plugins/floating-labels
import { createFloatingLabelsPlugin } from "@formkit/addons";
import "@formkit/addons/css/floatingLabels";
// https://formkit.com/plugins/multi-step
import { createMultiStepPlugin } from "@formkit/addons";
import "@formkit/addons/css/multistep";
// https://formkit.com/plugins/auto-height-textarea
import { createAutoHeightTextareaPlugin } from "@formkit/addons";
// https://formkit.com/plugins/local-storage
import { createLocalStoragePlugin } from "@formkit/addons";
// Pro Version
import { createProPlugin, inputs } from "@formkit/pro";
const pro = createProPlugin("fk-7a0c8037675", inputs);
export default {
plugins: [
pro,
createFloatingLabelsPlugin({
useAsDefault: false, // defaults to false
}),
createAutoAnimatePlugin({
// optional config
}),
createMultiStepPlugin(),
createAutoHeightTextareaPlugin(),
createLocalStoragePlugin({
// plugin defaults:
prefix: "formkit",
key: undefined,
control: undefined,
maxAge: 3600000, // 1 hour
debounce: 200,
beforeSave: undefined,
beforeLoad: undefined,
}),
],
config: {
classes: generateClasses(defaultTheme),
},
inputs: customInput,
};