notform
@notform/nuxt

Vue Forms Without the Friction

NotForm Logo
NotForm for Nuxt

Official Nuxt integration for NotForm.

This module registers NotForm's components and composable so you can use them in any page or component without importing them. The APIs are exactly the ones in the core package.

Install

pnpm add @notform/nuxt

The module brings notform with it. Add notform to your own dependencies only if you want to import its types directly.

Register the module in nuxt.config.ts:

export default defineNuxtConfig({
  modules: ['@notform/nuxt'],
})

Auto-imports

The module registers Form, Field, ArrayField, FieldError, and useForm.

These APIs are otherwise identical to the vue package.

Use notform.aliases to change selected names:

export default defineNuxtConfig({
  modules: ['@notform/nuxt'],
  notform: {
    aliases: {
      Form: 'AppForm',
      useForm: 'useAppForm',
    },
  },
})

See the Nuxt guide for setup details.

License

MIT © Favour Emeka