Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formsmd/formsmd/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheemailInput method creates an email input field with browser-native email validation. It ensures users provide properly formatted email addresses.
Method Signature
Parameters
The unique identifier for this input field. Used to reference the email value in form submissions.
Required Parameters
The main question or label displayed to the user.
Input-Specific Parameters
Sets the placeholder text displayed when the input is empty.
Sets the maximum number of allowed characters in the input.
Custom regex pattern for additional email validation beyond the browser default.
Sets the default email value.
Shared Parameters
All standard form field parameters are supported. See textInput for the complete list includingrequired, description, fieldSize, disabled, and more.
Examples
Validation
Email inputs use the browser’s built-in email validation which checks for:
- Presence of
@symbol - Valid characters before and after
@ - Valid domain structure after
@
- Valid Formats
- Invalid Formats
- Custom Patterns
These email formats will pass validation:
user@example.comuser.name@example.comuser+tag@example.co.ukuser_name@sub.example.com
Use Cases
Account Registration
Collect primary email for account creation and authentication.
Newsletter Signup
Subscribe users to mailing lists and newsletters.
Contact Forms
Gather email addresses for customer inquiries and support.
Recovery Email
Collect backup email addresses for account recovery.
Best Practices
Clear placeholder examples
Clear placeholder examples
Use realistic placeholder examples that show the expected format:
Helpful descriptions
Helpful descriptions
Explain how the email will be used:
Domain restrictions
Domain restrictions
When restricting to specific domains, clearly communicate this:
Return Value
Returns a string containing the Forms.md markup for the email input field.Related Methods
textInput
General text input for non-email text
urlInput
URL input with validation
phoneInput
Phone number input with international support