--- name: integrating-formspree-forms description: Use when adding forms to static websites using Formspree - provides contact forms, newsletter signups, validation, and spam protection without backend code --- # Integrating Formspree Forms ## Overview Form handling for static sites using **Formspree** - no backend needed. ## Why Formspree - Dead simple setup - Email notifications built-in - Spam protection included - Free tier: 50 submissions/month - Paid tier: $10/mo for 1000 submissions ## Setup **1. Create Formspree account** at https://formspree.io **2. Install dependencies:** ```bash pnpm add @formspree/react ``` **3. Get your form ID** from Formspree dashboard ## Basic Contact Form ```typescript // components/forms/ContactForm.tsx 'use client' import { useForm, ValidationError } from '@formspree/react' export default function ContactForm() { const [state, handleSubmit] = useForm("YOUR_FORM_ID") if (state.succeeded) { return

Thanks for your message! We'll get back to you soon.

} return (