Datepicker
Easy to use.
NPM install
`npm i frontello-ui-datepicker
Usage
Form exemple
<form action="" method="">
<div class="field">
<label class="label">Date</label>
<div class="value">
<input type="date" name="date" value="2022-04-01" required>
</div>
</div>
<div class="field">
<label class="label">Date</label>
<div class="value">
<input type="datetime-local" name="date" value="2022-04-01" required>
</div>
</div>
</form>
Init
<link rel="stylesheet" href="datepicker.css">
<script src="datepicker.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
Datepicker.init(document.querySelectorAll('input[type="date"]'));
Datepicker.init(document.querySelectorAll('input[type="datetime-local"]'));
});
</script>