@wisemen/nuxt-core-form-builder
| Install | |
|---|---|
npm install @wisemen/nuxt-core-form-builder |
|
| Latest Version: | 0.2.0 |
| Vue: | 3 |
| Last Updated: | Sep 30, 2026 |
| Links: | npm |
Nuxt form builder
The Nuxt frontend for @wisemen/payload-core-form-builder. Add @wisemen/nuxt-core-form-builder to a Nuxt app, provide the form document and one submit function, and it renders the fields, validates browser-side values, handles loading/errors, and displays the configured success message.
It uses Formango for field state and schema validation, and Nuxt UI for its default controls. Both are peer dependencies so consuming apps retain control over their versions and theming.
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@nuxt/ui'],
})
@nuxt/ui must be enabled by the consuming Nuxt application. The form builder
imports Nuxt UI components explicitly (rather than relying on Nuxt auto-imports),
so the consumer's Nuxt UI module, app config, and generated theme CSS are used.
Keep @nuxt/ui installed in the consuming application; it is a peer dependency
of this package.
<script setup lang="ts">
import type { RenderableForm } from '@wisemen/nuxt-core-form-builder'
const props = defineProps<{ form: RenderableForm }>()
const toast = useToast()
async function submit(values: Record<string, boolean | number | string | null>) {
return $fetch('/api/forms/submit', {
method: 'POST',
body: { form: props.form.id, data: values, locale: 'en' },
})
}
function onError() {
toast.add({ title: 'Could not send your form.', color: 'error' })
}
</script>
<template>
<FormBuilder
:form="form"
:submit="submit"
@error="onError"
/>
</template>
Use the field, actions, and success slots when a project needs a custom presentation. The package does not know about the API transport or authentication; the supplied submit function owns that boundary.
Related Packages
A lightweight helper that wires OpenTelemetry tracing, metrics, and logging into...
Invoicing frontend package with Vue 3 components, composables and types
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.0 | ^3.5.27 | ||
| 0.0.0 |