Common, optional, first-party add on features for FormKit.
You can add this package by using npm install @formkit/addons
or yarn add @formkit/addons
.
Adds auto-animate to each input automatically:
createAutoAnimatePlugin(options?: AutoAnimateOptions): FormKitPlugin;
options
— AutoAnimateOptionsimport { createApp } from 'vue'
import App from 'App.vue'
import { createAutoAnimatePlugin } from '@formkit/addons'
import { plugin, defaultConfig } from '@formkit/vue'
createApp(app).use(
plugin,
defaultPlugin({
plugins: [
createAutoAnimatePlugin({
// optional config
}),
],
})
)
Creates a new floating label plugin.
createFloatingLabelsPlugin(FloatingLabelsOptions?: FloatingLabelsOptions): FormKitPlugin;
FloatingLabelsOptions
— The options of FloatingLabelsOptions to pass to the pluginCreates a new multi-step plugin.
createMultiStepPlugin(options?: MultiStepOptions): FormKitPlugin;
options
— The options of MultiStepOptions to pass to the pluginThe options to be passed to createFloatingLabelsPlugin
interface FloatingLabelsOptions {
useAsDefault?: boolean
}
The options to be passed to createMultiStepPlugin
interface MultiStepOptions {
allowIncomplete?: boolean
hideProgressLabels?: boolean
tabStyle?: 'tab' | 'progress'
}