Forms / Email field

Forms

Email field

An email field with the mail glyph and its validation states.

import { EcoEmailField } from "vue-ecosphere"

Email

Type an address and leave the field: it validates on blur.

Valid on last blur: —

Filled

The address every notification goes to.

Bounced

Focus the field and leave it to see the error; fix the domain to clear it.

Read-only

A blocked control is always paired with the reason.

Ask an owner to change the sign-in address.

API

NameTypeDefaultDescription
v-modelstring""The address.
validatebooleantrueCheck on blur and say what is missing. Never while typing.
errorstring—Your own error (e.g. a bounce); wins over the built-in check.
label / required / hint / invalid / first / disabled / readonly / placeholder / id——As on EcoTextField.
@validate(valid: boolean) => void—After each blur check.