The email input uses the HTML email input type under the hood and provides basic email validation.
<ks-form-field type="email" label="Email" />
# Custom Validation
The email
type can work nicely with the pattern
attribute to create custom validation. The following example allows only emails with a specific domain.
<ks-form-field
type="email"
help-text="Use your 'dundermifflin.com' email"
label="Email"
minlength="7"
pattern=".+@dundermifflin.com">
</ks-form-field>
# Usage
For more information on how to use the form field
component and it's available configurations, check out the documentation.
← Date and Time File →