Installation
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Enter your email" | Label text for the input field |
placeholder | string | "[email protected]" | 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="[email protected]"
onChange={handleEmailChange}
/>Custom Label and Placeholder
<GravatarEmailInput
label="Your Email Address"
placeholder="[email protected]"
onChange={(email) => console.log("Email:", email)}
/>
