JSPM

  • Created
  • Published
  • Downloads 1116034
  • Score
    100M100P100Q181776F
  • License MIT

A lightweight, powerful datetimepicker

Package Exports

  • flatpickr
  • flatpickr/dist/flatpickr.min
  • flatpickr/dist/flatpickr.min.css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flatpickr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm version Bower version

Preamble

wew 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, or even Bootstrap.

Unfortunately, current HTML5 implementations (input[type='datetime']) are neither aesthetically pleasing nor widely supported. So that's out of the way.

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.

Screenshots

light datetimepicker dark datetimepicker

Install & Use

Along with demos and documentation: http://chmln.github.io/flatpickr

See also: