Nuxt Auto Form

Build forms faster with tools you already know and love. Generate fully customizable Nuxt UI forms straight from your validation schemas.

Write 50-60% less code

AutoForm generates all the boilerplate for you.
Focus on your schema, not repetitive form code.

With Nuxt Auto Form

16 lines
<script setup lang="ts">
import * as z from 'zod'

const schema = z.object({
  email: z.email(),
  password: z.string().min(8),
})

function onSubmit(data: z.infer<typeof schema>) {
  console.log(data)
}
</script>

<template>
  <AutoForm :schema="schema" @submit="onSubmit" />
</template>

Without Nuxt Auto Form

31 lines
<script setup lang="ts">
import * as z from 'zod'

const schema = z.object({
  email: z.email(),
  password: z.string().min(8),
})

type Schema = z.output<typeof schema>

const state = reactive<Partial<Schema>>({
  email: undefined,
  password: undefined,
})

function onSubmit(data: Schema) {
  console.log(data)
}
</script>

<template>
  <UForm :schema="schema" :state="state" @submit="onSubmit">
    <UFormField label="Email" name="email">
      <UInput v-model="state.email" type="email" />
    </UFormField>
    <UFormField label="Password" name="password">
      <UInput v-model="state.password" type="password" />
    </UFormField>
    <UButton type="submit">Submit</UButton>
  </UForm>
</template>

Powerful features built-in

From modals to custom components, everything you need to build production-ready forms.

Modal Support

Built-in modal component for forms. Perfect for quick actions, confirmations, and data collection without leaving the page.

Contact Us

Click the button to open a modal form

Custom Input Components

Extend your forms with custom input components. Includes password toggle, clear button, and more out of the box.

Custom Input Components

Easily use custom components for enhanced UX

Clear button appears when typing

Toggle to show/hide password

Save time. Write less. Build faster.

    Technologies you love
    Powered by Zod & Nuxt UI. Reduce your boilerplate in seconds, without complex rewrites.
    Powered by Nuxt UI
    Beautiful, customizable components out of the box.
    Powered by Zod 4
    Fastest and most popular schema validation library for TypeScript.
    Customizable
    Easily customize buttons, inputs, and labels to style your forms exactly as you want.
    Type-safe validation
    Leverage Zod's powerful validation with full TypeScript support and auto-completion.
    Flexible layouts
    Use slots and custom components to build complex forms with ease.

Get started in seconds

Install the module and start building forms instantly.