Complete Fields
Name, email, phone, message - everything you need
A complete contact form ready to drop into your contact page. Name, email, phone, message—zero configuration required. Netlify Forms integration included.
The ContactForm component includes all the fields a business needs: name, email, phone, and message. It integrates with Netlify Forms for submission handling, includes spam protection, and tracks submissions with Google Analytics.
Note: This form is live and functional on deployed sites with Netlify Forms enabled.
Just import and use. No props required - everything is pre-configured:
import ContactForm from '@theme/components/forms/ContactForm.astro';
<ContactForm /> Forms are automatically detected during deployment. No manual setup needed.
Netlify Dashboard → Forms → contact. All submissions appear here.
Configure email alerts: Netlify Dashboard → Forms → Form notifications.
Built-in Netlify spam filtering + honeypot field. No extra setup required.
The form redirects to /contact/success after submission. Create this page:
File: src/pages/contact/success.astro
---
import Layout from '@theme/layouts/Layout.astro';
---
<Layout title="Thank You!">
<section class="py-20 text-center">
<h1>Thank You!</h1>
<p>We've received your message and will get back to you soon.</p>
<a href="/" class="btn-primary">Back to Home</a>
</section>
</Layout> Name, email, phone, message - everything you need
GDPR-compliant checkbox for legal protection
Automatic form submission tracking
Honeypot field and Netlify spam filtering
Drop this form into any page. Submissions go straight to your Netlify dashboard.