Testing - Text Input

Pristine

<hx-text-control>

Optional

<input type="text">
:valid :invalid

Required

<input type="text" required>
:valid :invalid

Dirty

<hx-text-control hx-dirty>

Optional

<input type="text">
:valid :invalid

Required

<input type="text" required>
:valid :invalid

Visually Invalid

<hx-text-control class="hxInvalid">

Optional

<input type="text">
:valid :invalid

Required

<input type="text" required>
:valid :invalid

With Placeholder

<input type="text" placeholder="Type something..." />

Layout

Extra elements should not be visible.

input + label
input + label.hxRequired
input + label.hxOptional
input + label.hxRequired.hxOptional
input + label + .hxPrefix pfx
input + label + .hxSuffix sfx
input + label + .hxPrefix + .hxSuffix pfx sfx
input + label + div
DIV