Installation
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Enter your email" | Label text for the input field |
placeholder | string | "you@example.com" | Placeholder text for the input field |
initialValue | string | "" | Initial email value |
onChange | (email: string) => void | - | Callback when email changes |
Examples
With Initial Value
<GravatarEmailInput
initialValue="test@example.com"
onChange={handleEmailChange}
/>Custom Label and Placeholder
<GravatarEmailInput
label="Your Email Address"
placeholder="email@domain.com"
onChange={(email) => console.log("Email:", email)}
/>
