Contact Form

Contact Form: Contact form with honeypot spam guard, character count, field validation, loading state, and success confirmation screen. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Contact Form

npx motion-ui-skill add contact-form

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Source files

Contact Form

Contact form with honeypot spam guard, character count, field validation, loading state, and success confirmation screen.

Install

npx motion-ui-skill add contact-form

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Usage

"use client";

import { ContactForm } from "@/components/forms/contact-form";

export function ContactFormDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <ContactForm />
    </div>
  );
}

API Reference

ContactForm

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category