Advanced Form Elements
Searchable selects and select options with custom HTML, date, time and colour pickers, number, range, PIN, rating, single and multi-image upload (max 3) and a rich text editor.
Advanced Select
<select class="kt-select" data-kt-select="true" data-kt-select-enable-search="true">…</select>
<select class="kt-select" multiple data-kt-select="true" data-kt-select-multiple="true" data-kt-select-tags="true">…</select>
Image Upload
Click the avatar to pick an image. The preview stays in your browser.
<div class="upload-zone" data-upload-zone data-upload-max="3">
<input type="file" multiple data-upload-input>
</div>
<div class="upload-previews" data-upload-previews></div>
Date, Time & Color
<input type="text" data-datepicker='{"mode":"range"}'>
<div class="kt-input" data-colorpicker>
<button class="color-swatch" data-colorpicker-trigger></button>
<input value="#8C57FF" data-colorpicker-value>
</div>
Number, Range, PIN & Rating
<div class="kt-input-group w-40" data-kt-input-number="true">…</div>
<div data-dual-range data-prefix="$">
<input type="range" min="0" max="2000" step="100" value="300" data-dual-range-min>
<input type="range" min="0" max="2000" step="100" value="1400" data-dual-range-max>
</div>
<div data-kt-pin-input="true">…</div>
<div data-kt-rating="true" data-kt-rating-value="4"></div>
Rich Text Editor
Headings, paragraphs, bold, underline and lists. The HTML below is what the form submits.
Release notes
This editor keeps things simple: headings, paragraphs, underline and lists.
- Paste from Word stays clean
- Dark mode follows the theme
<div class="editor-frame">
<div data-editor data-editor-input="article">…</div>
</div>
<input type="hidden" id="article" name="article">
Input Data Masking
Zero-dependency live formatting via data-mask — phone, card, expiry, date, time, currency and custom patterns.
data-mask="phone"
data-mask="card"
data-mask="expiry"
data-mask="currency"
data-mask="date"
data-mask="time"
Pattern: 9-9999-99999-99-9
Pattern: AA-9999 (A=letter, 9=digit)
<!-- Built-in masks: phone, card, expiry, date, time, currency -->
<input class="kt-input" data-mask="phone" placeholder="(081) 234-5678">
<input class="kt-input" data-mask="currency" placeholder="12,450.00">
<!-- Custom pattern: 9 = digit, A = uppercase letter, * = alphanumeric -->
<input class="kt-input" data-mask="pattern" data-mask-pattern="9-9999-99999-99-9">
Autosize Textarea
Automatically expands height as you type via data-autosize (5rem–16rem bounds) with optional live character ring.
Add data-autosize + auto-size class.
Ring turns red in the final 20% of maxlength.
<textarea class="kt-textarea auto-size" data-autosize maxlength="240"></textarea>
Form Repeater
Dynamic add/remove rows with automatic name re-indexing and live line totals (js/plugins/repeater.js).
<div data-repeater data-repeater-min="1" data-repeater-max="8">
<div data-repeater-list>
<div data-repeater-item>…<button data-repeater-remove>Remove</button></div>
</div>
<template data-repeater-template>…</template>
<button type="button" data-repeater-add>Add Line Item</button>
</div>
Free-Text Tag Input
Type any keyword and press Enter or , to create a chip. Press Backspace to remove the last tag.
Client-Side Form Validation
<form data-validate-form novalidate>
<div class="kt-form-item">
<input name="val_email" type="email" class="kt-input">
<p class="hidden text-xs text-destructive" data-val-err></p>
</div>
</form>
Image Cropper
Zero-dependency HTML5 Canvas cropper with aspect ratio presets, zoom, 90° rotate, and PNG export.
<div data-cropper data-cropper-src="assets/media/app/placeholder-image-512.jpeg">
<canvas width="460" height="280" data-cropper-canvas></canvas>
<canvas width="200" height="200" data-cropper-preview></canvas>
</div>