@formhaus/vue

Render multi-step, conditional and branching forms in Vue 3 from a JSON form definition. Native inputs or your own components.
7,075 4
Install
npm install @formhaus/vue
Latest Version:1.2.2
Vue:3
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: ignsm

@formhaus/vue

Renders a JSON form definition in Vue 3: multi-step, conditional and branching forms on top of @formhaus/core. Native HTML inputs by default. Part of Formhaus.

Install

npm install @formhaus/core @formhaus/vue

Requires Vue 3.3 or later and Node 22.12 or later.

Usage

<script setup lang="ts">
import { FormRenderer } from '@formhaus/vue';
import definition from './contact-form.json';

async function handleSubmit(values: Record<string, unknown>) {
  await fetch('/api/contact', {
    method: 'POST',
    body: JSON.stringify(values),
  });
}
</script>

<template>
  <FormRenderer :definition="definition" @submit="handleSubmit" />
</template>

Features

  • Built-in field types, sections, repeatable groups and conditional visibility. See fields.
  • Multi-step forms with lifecycle hooks, radio autoAdvance, async step validation and branching routes.
  • Custom components through the components prop, plus HeadlessFormRenderer to keep the built-in fields out of your bundle. Integrations: Vuetify.
  • Dynamic select options with optionsFrom and optionsProviders. See fields.
  • Form events through @formEvent, for analytics.
  • Translations: useLocalizedForm() from @formhaus/vue/i18n.
  • Server-side validation of the same definition with @formhaus/core/server.
  • Formhaus Cloud: FormhausForm from @formhaus/vue/cloud renders a published form and submits to the hosted endpoint, with file uploads and the bot check.
  • Theming: import '@formhaus/core/style.css', then override the --fh-* custom properties.
  • Nuxt support.

Formhaus Cloud

<script setup lang="ts">
import { FormhausForm } from '@formhaus/vue/cloud';
</script>

<template>
  <FormhausForm id="form_id" />
</template>

Docs

License

MIT

Related Packages

@retailcrm/vue-formulario

Vue Formulario is a library, inspired by Vue Formulate , that handles the core l...

86,689 3
@bimetal/forms-vue-components

Default Vue 3 form builder + renderer — edits the schema (add/reorder/edit field...

2,180
vue-form-send

A Vue.js directive for sending data from form and primitive validation inputs

1,199 4
@formisch/vue

The lightweight, schema-first, and fully type-safe form library for Vue

32,816 1,208

Version History

Version Released License
1.2.2 MIT
1.2.1 MIT
1.2.0 MIT
1.1.1 MIT
1.1.0 MIT
Pre-releases (1)
Version Released License
1.0.0-rc.0 MIT