ENGLISH·COURSE API
    Preparing search index...
    • One labelled input of an account form.

      Parameters

      Returns Element

      The label is always visible. The hint and the error are both linked to the input through aria-describedby; the error also marks the input aria-invalid and is rendered as an alert, so it is announced when it appears.

      <AccountField name="email" type="email" label={t("fields.email")}
      value={email} onChange={setEmail} error={errors.email && t(`validation.${errors.email}`)} />