JSFiddle - React, Tailwind, and code Playground

by _sir

HTML

<script src="https://rawgit.com/RobinHerbots/Inputmask/3.x/dist/jquery.inputmask.bundle.js"></script>
<input type="number" name="num"> Number<br>
<input type="tel" name="tel"> Tel<br>
<input type="date" name="date"> Date<br>
<hr>
<input type="text" name="decimal"> : Decimal<br>
<input type="text" name="decimal2"> : Decimal2 - numericInput<br>
<input type="text" name="currency"> : Currency<br>
<input type="text" name="date"> :

JavaScript

$('[name="decimal"]').inputmask('decimal');
$('[name="decimal2"]').inputmask('decimal', {numericInput: true});

$('[name="currency"]').inputmask('$999,999,999.99');
$('[name="date"]').inputmask("99/99/9999",{ "placeholder": "dd/mm/yyyy" });