flatpickr
Version:
A lightweight, powerful javascript datetime picker
52 lines (34 loc) • 2.85 kB
Markdown
## flatpickr - javascript datetime picker
[](https://travis-ci.org/chmln/flatpickr)
[](https://coveralls.io/github/chmln/flatpickr)
[](https://www.npmjs.com/package/flatpickr)

[](https://cdnjs.com/libraries/flatpickr)
[](https://raw.githubusercontent.com/chmln/flatpickr/master/LICENSE.md)






## Preamble
Almost every large SPA or project involves date and time input. There are limited options, however, if you also prefer to keep your projects lean and consequently stay away from heavy frameworks such as [jQuery](https://jsperf.com/jquery-vs-javascript-performance-comparison/22), or even Bootstrap.
Appalled at the fact that I have to load 300kb of jquery and jquery UI or hook up bootstrap just to use a calendar, I created this \[date\]\[time\]picker that's powerful, easy to use, and looks good out of the box.
Written in vanilla javascript, works with anything, anywhere.

## Compatibility
IE9+, iOS Safari 6+, MS Edge, Chrome 8+, Firefox 6+
## Install & Use
Demos and documentation: https://chmln.github.io/flatpickr
See also:
* [React Component](https://github.com/coderhaoxin/react-flatpickr)
* [ember-flatpickr addon](https://www.npmjs.com/package/ember-flatpickr)
* [angular-flatpickr addon](https://www.npmjs.com/package/angular-flatpickr)
* [Vue-Blu/datepicker](https://chenz24.github.io/vue-blu/#/en/components/datepicker)
## Supporting flatpickr
Special thanks to support by:
- BrowserStack for providing indispensable testing utilities
<a target="_blank" href="https://www.browserstack.com/">
<img src="https://cloud.githubusercontent.com/assets/11352152/24872293/ec310d48-1dea-11e7-9d09-8120d5742fba.png">
</a>
---