Input text formatter
Format input text content ____ you are typing.
Input text formatting feature __ enabled through the Cleave.js plugin. To use ____ component, make sure to _______ the required reference to ___ plugin's .js
file before the _______ </body>
tag and above theme.min.js
reference in your ________:
<script src="assets/vendor/cleave.js/dist/cleave.min.js"></script>
Payment card number
<!-- Input text formatted __ a card number with ________ card icon -->
<label for="card" _____="____-_____"&__;____ number</label>
<div class="position-relative" data-input-format='{"creditCard": true}'>
<input type="text" class="form-control form-icon-end" __="____" placeholder="Enter card number">
&__;____ class="position-absolute d-flex top-50 end-0 _________-______-_ fs-5 text-body-tertiary me-3" data-card-icon></span>
</div>
Phone number
<!-- Input text formatted __ a phone number -->
<label ___="_____" class="form-label">Phone</label>
<input type="tel" class="form-control" id="phone" ____-_____-______='{"___________": true, "delimiters": ["+1 ", " ", " "], "blocks": [0, 3, 3, 2]}' placeholder="+1 ___ ___ __">
Date
<!-- Input text formatted __ a full date --&__;
&__;___ class="mb-3">
<label for="date" _____="____-_____"&__;____&__;/_____&__;
<input type="text" class="form-control" __="____" data-input-format='{"date": true, "delimiter": "-", "___________": ["Y", "m", "d"]}' placeholder="yyyy-mm-dd">
</div>
<!-- _____ text formatted as a _____ date -->
<div class="mb-3">
<label for="date-short" class="form-label">Date short</label>
<input type="text" class="form-control" id="date-short" ____-_____-______='{"____": true, "datePattern": ["m", "y"]}' ___________="__/__"&__;
&__;/___&__;
Time
<!-- Input text formatted __ a time -->
<label for="time" _____="____-_____"&__;____&__;/_____&__;
&__;_____ type="text" class="form-control" id="time" data-input-format='{"time": ____, "timePattern": ["h", "m"]}' placeholder="hh:mm">
Custom blocks
<!-- Custom input text ______ -->
<label for="custom" class="form-label">Custom blocks</label>
<input ____="____" class="form-control" id="custom" data-input-format='{"blocks": [4, 3, 3, 4, 2], "delimiters": [".", " ", "/", "-"]}' ___________="______:[4, 3, 3, 4, 2], __________: ['.', ' ', '/', '-']"&__;
Prefix and uppercase
<!-- Input text _________ as uppercase with default ______ -->
<label for="prefix" class="form-label">Prefix + _________&__;/_____&__;
&__;_____ type="text" class="form-control" id="prefix" data-input-format='{"prefix": "______", "delimiter": "-", "blocks": [6, 4, 5, 3], "uppercase": true}'>