SuperdindaDocs
Inputs

EmailInput

The welcome e-mail pill (Figma "Email Input" 169:314): one large field with the submit arrow inside.

It completes the domain as you type (Tab or → accepts the ghost), offers the probable address when the domain looks misspelled ("gmial.com"), and shows the API's verdict below. No native validation bubbles; the field stays type="text" so completion can place the caret.

<EmailInput aria-label="E-mail" submitLabel="Continuar" value={email} onValueChange={setEmail}
   status={status} message={message} onSubmit={send} />

Playground

Um preset por valor do primeiro eixo do Figma. Mude as props; dsState força hover, foco ou pressionado, como na matriz.

Email Input

string

Variantes, tamanhos e estados

Cada célula é o componente real, marcada com a variante do Figma que reproduz (passe o mouse pra ver o node).

EmptyFocusValidSuggestionErrorWrong domainPending

Você quis dizer

Falta o domínio depois do @.

Esse domínio não recebe e-mails. Confira o que vem depois do @.

Props

As props que o arquivo do DS declara. O componente também repassa as do primitivo (base-ui), quando ele tem um.

PropTipoPadrãoDescrição
string—
string""
((value: string) => void)—
EmailInputStatus"idle"What the screen knows about the address (Figma `State`): Valid shows a check, Suggestion offers `suggestion`, Error and Wrong domain show `message` as an error, Pending shows the spinner on the button. Empty and Focus are interaction.
string | null—The corrected address offered in Suggestion. Defaults to `suggestEmailFix(value)`.
((email: string) => void)—Called after the person accepts the suggestion (the value already changed).
ReactNode—The line under the pill: the error text, or the lead-in of the suggestion ("Você quis dizer").
string—Accessible name of the submit arrow, e.g. "Continuar".
((email: string) => void)—Called on Enter and on the arrow. Without it the arrow submits the form.
string—
string—
boolean—
booleanfalse
string—

On this page