Input | Vanilla

Input

<div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input Label
        </label>
        <input
            type="text"
            id="labelInput"
            placeholder="Placeholder Text"
            class="dk-input"
        />
    </div>

Multiple

<div class="dk-input-group">
        <label
            for="multiInput1"
            class="dk-input-label">
            Form Field Group with Multiple Inputs
        </label>
        <input
            type="text"
            id="multiInput1"
            placeholder="Hint Text"
            class="dk-input"
        />
        <label
            for="multiInput2"
            class="sr-only dk-input-label">
            Label for 2 input
        </label>
        <input
            type="text"
            id="multiInput2"
            placeholder="Placeholder"
            class="dk-input"
        />
        <small class="dk-error-message">
            It&#x27;s wrong
        </small>
    </div>

Helper Text

<div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input Label
        </label>
        <small class="dk-input-helper">
            This is an example of some
            instructional text
        </small>
        <input
            type="text"
            id="labelInput"
            class="dk-input"
        />
    </div>

Error

<div class="dk-input-group">
        <label
            for="errorInput"
            class="dk-input-label">
            Field with error
        </label>
        <input
            type="text"
            id="errorInput"
            class="dk-input dk-input--error"
        />
        <small class="dk-input__error-feedback">
            User Name or Password is incorrect
        </small>
    </div>

Disabled

<div class="dk-input-group">
        <label
            for="disabledInput"
            class="dk-input-label">
            Disabled field
        </label>
        <input
            type="text"
            id="disabledInput"
            placeholder="Disabled Field"
            disabled=""
            class="dk-input"
        />
    </div>

Text Area

<div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input Label
        </label>
        <textarea
            id="w3review"
            name="w3review"
            placeholder="this is a placeholder"
            rows="8"
            cols="50"
            class="dk-input">
            Lorem ipsum dolor sit amet,
            consectetur adipisicing elit. Ipsa at
            esse cupiditate hic doloremque,
            exercitationem sunt veritatis rerum
            tempora adipisci vel nesciunt
            architecto asperiores sed neque minus
            laboriosam fuga molestias?
        </textarea>
    </div>

Select

<div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input Label
        </label>
        <select class="dk-input">
            <option class="">Option 1</option>
            <option class="">Option 2</option>
        </select>
    </div>

Search Boxes

<div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input field with search icon
        </label>
        <div class="dk-input__search-icon">
            <input class="dk-input" />
        </div>
    </div>
    <div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input field with placeholder text and
            icon
        </label>
        <div class="dk-input__search-icon">
            <input
                placeholder="Placeholder Text"
                class="dk-input"
            />
        </div>
    </div>
    <div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input field with red search icon
            button
        </label>
        <div class="dk-input__search-button">
            <input
                placeholder="Placeholder Text"
                class="dk-input"
            />
            <button class="dk-input-button"></button>
        </div>
    </div>

Dropdown Select

<div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input field with select dropdown
        </label>
        <div class="dk-input__select">
            <input
                placeholder="Placeholder Text"
                class="dk-input"
            />
            <select class="dk-input-select dk-input">
                <option class="">Ω</option>
                <option class="">kΩ</option>
                <option class="">MΩ</option>
            </select>
        </div>
    </div>

Designator Value

<div class="dk-input-group">
        <label
            for="labelInput"
            class="dk-input-label">
            Input field with designator
        </label>
        <div class="dk-input__value">
            <input
                placeholder="Placeholder Text"
                class="dk-input"
            />
            <span class="dk-input-value">kΩ</span>
        </div>
    </div>