Skip to main content
MybringDesign System

Text inputs

Disabled inputs can usually be removed.

<label class="form__label" for="input-text">Text input label</label>
<input class="form__control" id="input-text" type="text" />

<label class="form__label" for="input-disabled">Disabled</label>
<input class="form__control" id="input-disabled" type="text" disabled />

Textarea

<label class="form__label" for="input-textarea">Text areas also need labels</label>
<textarea class="form__control" id="input-textarea"></textarea>

Input types

Properly defined input type and mode attributes give users more relevant virtual keyboards for the different inputs. This is especially useful for mobile devices and tablets, but it also improves accessibility for everyone.

Read more about all the different input types.

<label class="form__label">
Text input
<input class="form__control" type="text" />
</label>

<label class="form__label">
Email input
<input class="form__control" type="email" />
</label>

<label class="form__label">
Phone input
<input class="form__control" type="tel" />
</label>

<label class="form__label">
Numeric input
<input class="form__control" type="text" inputmode="numeric" />
</label>