Skip to content

soyuka/dpicker

Repository files navigation

DPicker

Build Status codecov

A framework-agnostic minimal date picker.

Quick start

<label>
  <input type="datetime">
</label>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/dpicker@latest/dist/dpicker.all.min.js"></script>
<script>
  [].slice.call(document.querySelectorAll('input[type="date"],input[type="datetime"]')).forEach(function(e){new dpicker(e);});
</script>

Read the docs

License

MIT