14 #Input Input
14.1 #Input.char-counter Input and textarea with character counter
.sf-input .-char-counter
352
-9
Html
<div class="sf-input -char-counter">
<input type="text" class="sf-input__field" id="input-45" />
<span class="sf-input__char-counter">352</span>
</div>
</br>
</br>
<div class="sf-input -textarea -char-counter">
<textarea type="textarea" class="sf-input__textarea" id="textarea-4">Longer than 4</textarea>
<span class="sf-input__char-counter -error">-9</span>
</div>
14.2 #Input.default Input
Default
.sf-input
Example: Input example text
Html
<div class="sf-input">
<label class="sf-input__label" for="input_1">
<span>Input title</span>
</label>
<input type="text" class="sf-input__field" id="input_1" placeholder="Search the blog..." />
<p class="hint sf-input__hint">Example: Input example text</p>
</div>
14.3 #Input.disabled Disabled:
.sf-input
Html
<div class="sf-input">
<label class="sf-input__label" for="input-6">
<span>Input title</span>
</label>
<input type="text" class="sf-input__field" disabled value="User name" id="input-6" />
</div>
14.4 #Input.file-input File input
Upload icon
.sf-input-file
Html
<div class="sf-input-file">
<label class="sf-input-file__label" for="input-file_1">
<a class="-secondary sf-icon sf-fa sf-fa-upload -size-xl" title="Upload"></a>
</label>
<input type="file" id="input-file_1" />
</div>