Default text field
This is the input's helper text.
<div class="ecl-form-group"><label for="example-input-id-1" class="ecl-form-label">Label<span
class="ecl-form-label__optional"> (optional)</span></label>
<div class="ecl-help-block">This is the input&#x27;s helper text.</div><input type="text" id="example-input-id-1"
class="ecl-text-input ecl-text-input--m" placeholder="Placeholder text" />
</div>
Try it yourself on the playground
PlaygroundDisabled text field
This is the input's helper text.
<div class="ecl-form-group"><label for="example-input-id-1" class="ecl-form-label ecl-form-label--disabled">Label<span
class="ecl-form-label__optional"> (optional)</span></label>
<div class="ecl-help-block ecl-help-block--disabled">This is the input&#x27;s helper text.</div><input type="text"
id="example-input-id-1" class="ecl-text-input ecl-text-input--m" placeholder="Placeholder text" disabled="" />
</div>
Try it yourself on the playground
PlaygroundInvalid text field
This is the input's helper text.
<div class="ecl-form-group"><label for="example-input-id-1" class="ecl-form-label ecl-form-label--invalid">Label<span
class="ecl-form-label__optional"> (optional)</span></label>
<div class="ecl-help-block">This is the input&#x27;s helper text.</div>
<div class="ecl-feedback-message">
This is the error message</div><input type="text" id="example-input-id-1"
class="ecl-text-input ecl-text-input--invalid ecl-text-input--m" placeholder="Placeholder text" />
</div>
Try it yourself on the playground
PlaygroundRequired text field
This is the input's helper text.
<div class="ecl-form-group"><label for="example-input-id-1" class="ecl-form-label">Label<span
class="ecl-form-label__required">*</span></label>
<div class="ecl-help-block">This is the input&#x27;s helper text.</div><input type="text" id="example-input-id-1"
class="ecl-text-input ecl-text-input--m" placeholder="Placeholder text" required="" />
</div>
Try it yourself on the playground
Playground