Basic Form Elements
Inputs, selects, textareas, checkboxes, radios, switches and a complete Account Settings form.
Basic Inputs
Use the name on your ID.
<div class="kt-form-item">
<label class="kt-form-label" for="f-name">Full name</label>
<input class="kt-input" id="f-name" type="text" placeholder="John Doe">
<p class="kt-form-description">Use the name on your ID.</p>
</div>
Sizes & Add-ons
<div class="kt-input-group">
<span class="kt-input-addon">https://</span>
<input class="kt-input" type="text" placeholder="yoursite">
<span class="kt-input-addon">.com</span>
</div>
Select
<select class="kt-select">
<option>Admin</option>
<option>Editor</option>
</select>
Textarea
0/200 characters
Grows as you type (up to 16rem, then scrolls). The ring fills up and turns red with the characters left near the limit.
<textarea class="kt-textarea" id="t-bio" rows="4" maxlength="200" data-char-count></textarea>
<p class="kt-form-description"><span data-char-count-for="t-bio">0</span>/200 characters</p>
<!-- Auto-size + characters-left ring (demo.js) -->
<span class="char-ring" data-char-ring-for="t-note">
<span data-char-ring-left></span>
<svg width="20" height="20" viewBox="0 0 20 20">
<circle cx="10" cy="10" r="8" fill="none" stroke="var(--border)" stroke-width="2.5"/>
<circle cx="10" cy="10" r="8" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-dasharray="0 50.27" data-char-ring-bar/>
</svg>
</span>
<textarea class="kt-textarea auto-size" id="t-note" maxlength="300" data-autosize></textarea>
Checkbox & Radio
<label class="kt-label"><input class="kt-checkbox" type="checkbox" checked> Checked</label>
<label class="kt-label"><input class="kt-radio" type="radio" name="plan"> Pro</label>
Switch
<input class="kt-switch" type="checkbox" checked>
Rich Radio Options
Whole-card radios with icon, title and description. option-card / option-card-dotted / option-card-dashed, no JS.
<label class="option-card-dashed items-center">
<i class="ti ti-user text-4xl text-primary"></i>
<span class="grow">…title / description…</span>
<input class="kt-radio" type="radio" name="account" checked>
</label>
<!-- Icon tile: hide the dot, the card shows the state -->
<label class="option-card flex-col items-center"><input class="sr-only" type="radio" name="pay">…</label>
Validation States
Drop .is-valid, .is-warning or .is-invalid on any control.
Great choice — this username is available.
Fair strength — add a symbol to make it stronger.
Please enter a valid company email address.
Upgrade before Friday to avoid service interruption.
This field is required when declining an order.
<!-- Success -->
<div class="kt-input is-valid">
<input type="text" value="kova_admin">
<i class="ti ti-circle-check text-success"></i>
</div>
<!-- Warning / Error -->
<input class="kt-input is-warning" type="password">
<input class="kt-input is-invalid" type="email" aria-invalid="true">