Skip to content

jackchristian1995/netlify-forms-nuxt

Repository files navigation

Netlify Forms Integration with Nuxt3

This Nuxt project contains three examples of different implementations of Netlify Forms within a Nuxt app. The three examples are separated out into three separate components. Feel free to use and adapt the component code to your needs.

For more information about the implementations, read this blog post explaining each one.

  1. Simple Netlify Form - The most basic implementation of Netlify Forms
  2. AJAX Netlify Form - Submitting form data using fetch API
  3. Conditional Rendering Netlify Form - Using conditionally rendered form elements with Netlify Forms

Installation

Download the repository and run from the root directory.

npm install

Usage

Navigate to the root directory in a terminal and run.

npm run dev

Deployment with Netlify

Follow guidelines set forth about deploying Nuxt apps in Netlify documentation.

To enable Netlify Form detection, follow guidelines set out in Netlify Forms documentation.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Reference code for setting up Netlify Forms in a Nuxt app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published