
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
formkit-inertify
Advanced tools
A plugin for integrating InertiaJS with FormKit.
npm i formkit-inertify
import formkitInertify from 'formkit-inertify';
// formkit.config.js
const config = {
plugins: [formkitInertify]
}
This plugins adds to formkit's context an inertia property to be used for visits adding visit callbacks to change formkit's state.
<!-- You can use the new inertia property inside the context to make inertia visits -->
<FormKit
type="form"
submit-label="Login"
@submit="(fields, node) => node.context.inertia.post('/login', fields)"
>
<FormKit type="email" name="email" label="E-mail" />
<FormKit type="password" name="password" label="Password" />
</FormKit>
You can pass any of inertia options to it, event callbacks also get the node as the second parameter as a bonus.
<!-- You can pass any inertia property and events callback to it -->
<FormKit
type="form"
submit-label="Login"
@submit="(fields, node) => node.context.inertia.post('/login', fields, { onBefore: (visit, node) => { console.log(visit, node); }})"
>
<FormKit type="email" name="email" label="E-mail" />
<FormKit type="password" name="password" label="Password" />
</FormKit>
If you want to disable the default behaviour of inertify at a given event you can by setting its disable callback name to false.
<FormKit
type="form"
submit-label="Login"
@submit="(fields, node) => node.context.inertia.post('/login', fields, { onBefore: (visit, node) => { console.log(visit, node); }, disable: { onError: false } })"
>
<FormKit type="email" name="email" label="E-mail" />
<FormKit type="password" name="password" label="Password" />
</FormKit>
You can check any version change and its commits by the changelog
Any contribution is welcomed, be it an issue found, a feature you would like to see, to any pull request you wish to make.
FAQs
A plugin for integrating InertiaJS with FormKit
We found that formkit-inertify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.