f0rextasy

Email Input

Component 1

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>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    6
  • Stamp Seal

    Stamp Seal

    6
  • Network Graph

    Network Graph

    5
  • Board Checklist

    Board Checklist

    4
  • Time Input

    Time Input

    3
  • Data Table

    Data Table

    3
  • Empty State Card

    Empty State Card

    2
  • Running Order Timeline

    Running Order Timeline

    2