About
A text input for collecting an email address that validates on blur and suggests a correction for common misspelled domains like gmail.com.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Email Input to your project and fits it to your theme.
Code
How Email Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import EmailInput from "@/components/ui/email-input";
export default function EmailInputDemo() {
return (
<div className="flex min-h-screen w-full items-center justify-center bg-background p-8 text-foreground">
<div className="w-full max-w-sm space-y-2">
<label className="block text-[10px] font-mono uppercase tracking-[0.15em] text-muted-foreground">
Email
</label>
<EmailInput
defaultValue="test@example.com"
validate
onValueChange={(v) => {}}
/>
</div>
</div>
);
}








