input email

The email input element let the user enter and edit an email address

According to the Web Content Accessibility Guidelines (WCAG), it is highly reccomended to use a label together with the email input.

This component works with all its features only in browsers that have support for the :has CSS selector. Please refer to the reference on MDN.
If you need to run this component in a browser with no support for the :has CSS selector, please use the FROK Release 3.6.x.

component variations

input email

<div class="a-email-input">
  <input
    type="email"
    id="email-input-1"
    name="input email"
    value="example@bosch.com"
  />
</div>

input email readonly

<div class="a-email-input">
  <input
    type="email"
    id="email-input-2"
    name="input email readonly"
    readonly=""
    value="example@bosch.com"
  />
</div>

input email disabled

<div class="a-email-input">
  <input
    type="email"
    id="email-input-3"
    name="input email disabled"
    disabled=""
    value="example@bosch.com"
  />
</div>

input email with label

<div class="a-email-input">
  <label for="email-input-4">E-Mail</label>
  <input
    type="email"
    id="email-input-4"
    name="input email with label"
    value="example@bosch.com"
  />
</div>

input email with label readonly

<div class="a-email-input">
  <label for="email-input-5">E-Mail</label>
  <input
    type="email"
    id="email-input-5"
    name="input email with label readonly"
    readonly=""
    value="example@bosch.com"
  />
</div>

input email with label disabled

<div class="a-email-input">
  <label for="email-input-6">E-Mail</label>
  <input
    type="email"
    id="email-input-6"
    name="input email with label disabled"
    disabled=""
    value="example@bosch.com"
  />
</div>

input email with very long label

<div class="a-email-input">
  <label for="email-input-7">
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Vitae omnis labore
    consequatur distinctio provident voluptatum nisi recusandae quod asperiores
    quo, architecto cum nesciunt nemo, vel minima possimus et blanditiis
    numquam, cupiditate deserunt fugit delectus earum ducimus alias! Quam atque
    laborum tempore alias magnam tenetur fuga facere totam, harum, ipsa sit!
  </label>
  <input
    type="email"
    id="email-input-7"
    name="input email with very long label"
    value="example@bosch.com"
  />
</div>

input email with very long label readonly

<div class="a-email-input">
  <label for="email-input-8">
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Vitae omnis labore
    consequatur distinctio provident voluptatum nisi recusandae quod asperiores
    quo, architecto cum nesciunt nemo, vel minima possimus et blanditiis
    numquam, cupiditate deserunt fugit delectus earum ducimus alias! Quam atque
    laborum tempore alias magnam tenetur fuga facere totam, harum, ipsa sit!
  </label>
  <input
    type="email"
    id="email-input-8"
    name="input email with very long label readonly"
    readonly=""
    value="example@bosch.com"
  />
</div>

input email with very long label disabled

<div class="a-email-input">
  <label for="email-input-9">
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Vitae omnis labore
    consequatur distinctio provident voluptatum nisi recusandae quod asperiores
    quo, architecto cum nesciunt nemo, vel minima possimus et blanditiis
    numquam, cupiditate deserunt fugit delectus earum ducimus alias! Quam atque
    laborum tempore alias magnam tenetur fuga facere totam, harum, ipsa sit!
  </label>
  <input
    type="email"
    id="email-input-9"
    name="input email with very long label disabled"
    disabled=""
    value="example@bosch.com"
  />
</div>

input email with placeholder

<div class="a-email-input">
  <input
    type="email"
    id="email-input-10"
    name="input email with placeholder"
    placeholder="Write your email here"
  />
</div>

input email with placeholder readonly

<div class="a-email-input">
  <input
    type="email"
    id="email-input-11"
    name="input email with placeholder readonly"
    placeholder="Write your email here"
    readonly=""
  />
</div>

input email with placeholder disabled

<div class="a-email-input">
  <input
    type="email"
    id="email-input-12"
    name="input email with placeholder disabled"
    placeholder="Write your email here"
    disabled=""
  />
</div>

input email with placeholder and label

<div class="a-email-input">
  <label for="email-input-13">E-Mail</label>
  <input
    type="email"
    id="email-input-13"
    name="input email with placeholder and label"
    placeholder="Write your email here"
  />
</div>

input email with placeholder and label readonly

<div class="a-email-input">
  <label for="email-input-14">E-Mail</label>
  <input
    type="email"
    id="email-input-14"
    name="input email with placeholder and label readonly"
    placeholder="Write your email here"
    readonly=""
  />
</div>

input email with placeholder and label disabled

<div class="a-email-input">
  <label for="email-input-15">E-Mail</label>
  <input
    type="email"
    id="email-input-15"
    name="input email with placeholder and label disabled"
    placeholder="Write your email here"
    disabled=""
  />
</div>

additional content

styles SCSS

.a-email-input {
  @include text-field;

  input {
    &::-webkit-contacts-auto-fill-button {
      visibility: hidden;
    }
  }
}