formsBeginner
Contact Form
Two-column contact form with name, email, phone, and a multi-line message.
Claude prompt
Drop this into Claude Code, claude.ai, or your AI tool of choice to regenerate or remix this component from scratch.
Build a contact form with Tailwind: section heading + intro paragraph, then a form with first/last name fields side by side, then email and phone in another row, a multi-line message textarea, and a single full-width submit button. All inputs share the same minimal style (border, rounded, focus ring).
Code
html
<!--
Source: Mark Mead (HyperUI)
https://github.com/markmead/hyperui/blob/d09f638255d00e91e95f3cabea4f1d385356dd70/public/examples/marketing/contact-forms/1.html
License: MIT
Surfaced via https://vibedex-ryan-staxs-projects-fb4e0931.vercel.app/components/hyperui-contact-form
-->
<div class="bg-white text-gray-900 min-h-screen flex items-center justify-center">
<div class="p-6 w-full">
<form
action="#"
class="mx-auto max-w-md space-y-4 rounded-lg border border-gray-300 bg-gray-100 p-6"
>
<div>
<label class="block text-sm font-medium text-gray-900" for="name">Name</label>
<input
class="mt-1 w-full rounded-lg border-gray-300 focus:border-indigo-500 focus:outline-none"
id="name"
type="text"
placeholder="Your name"
/>
</div>
<div>
<label class="block text-sm font-medium text-gray-900" for="email">Email</label>
<input
class="mt-1 w-full rounded-lg border-gray-300 focus:border-indigo-500 focus:outline-none"
id="email"
type="email"
placeholder="Your email"
/>
</div>
<div>
<label class="block text-sm font-medium text-gray-900" for="message">Message</label>
<textarea
class="mt-1 w-full resize-none rounded-lg border-gray-300 focus:border-indigo-500 focus:outline-none"
id="message"
rows="4"
placeholder="Your message"
></textarea>
</div>
<button
class="block w-full rounded-lg border border-indigo-600 bg-indigo-600 px-12 py-3 text-sm font-medium text-white transition-colors hover:bg-transparent hover:text-indigo-600"
type="submit"
>
Send Message
</button>
</form>
</div>
</div>