Skip to main content

Text input

Information: Documentation incomplete

This component still requires documentation.

Use the input component allows users to enter a single line of text.

Example

Default

View HTML
<label class="uhb-c-label" for="first-name">
  What is your first name?
</label>
<input class="uhb-c-input" id="first-name" name="first-name" type="text">

Error

View HTML
<label class="uhb-c-label" for="first-name">
  What is your first name?
</label>
<input class="uhb-c-input uhb-c-input--error" id="first-name" name="first-name" type="text">