Input Text

The text input component is the most basic input component. It provides design for text input components implemented with <input>, etc.

Basically, just add the input class.

html
<input id="" type="text" class="input">

Size

You can change the size using classes such as is-sm and is-md.



html
<input id="" type="text" class="input is-lg">
<hr class="mt-3">
<input id="" type="text" class="input is-md">
<hr class="mt-3">
<input id="" type="text" class="input is-sm">

HTML Attributes

Disabled

Adding the disabled attribute grays out the input.

html
<input id="" type="text" class="input" disabled>

Read-only

Using readonly results in a specialized design.

html
<input id="" type="text" class="input" readonly>

Validation and Feedback

Feedback design after validating user input.

Error

Just add the is-error class.

html
<input id="" type="text" class="input is-error">

Using form-group allows you to display error text at the same time.

Support text
*Error text
html
<div class="form-group">
    <label for="test" class="form-label">
        Label
        <span class="form-necessity">*Required</span>
    </label>
    <div class="form-support">Support text</div>
    <input id="test" type="text" class="input is-error">
    <div class="form-error">*Error text</div>
</div>