flatpickr

lightweight and powerful datetimepicker with no dependencies

Github stars Tracking Chart

flatpickr - javascript datetime picker

Build Status

Coverage
npm version
CDNJS
License

blue
green
confetti
red
default
dark

Motivation

Almost every large SPA or project involves date and time input. Browser's native implementations of those are inconsistent and limited in functionality. Most other libraries require you to pull in heavy dependencies like jQuery, Bootstrap, and moment.js. I wanted something that was good-looking out of the box, dependency-free, powerful, and extensible.

Feature overview:

  • Dependency-free (no bloated bundles)
  • Simple, polished UX
  • Date + time input
  • Range selections
  • Ability to select multiple dates
  • Can be used as just a time picker
  • Display dates in a human-friendly format
  • Easily disable specific dates, date ranges, or any date using arbitrary logic
  • Week numbers
  • 51 locales
  • 8 colorful themes (incl. dark and material)
  • Numerous plugins
  • Libraries available for React, Angular, Vue, Ember, and more

flatpickr provides more functionality at a fraction of the size of other libraries.

Compatibility

IE9 and up, Edge, iOS Safari 6+, Chrome 8+, Firefox 6+

Install & Use

Demos and documentation: https://flatpickr.js.org

See also:

Supporting flatpickr

flatpickr will never change its license, pester users for donations, or engage in other user-hostile behavior.

Nevertheless, if you enjoyed working with this library or if its made your life easier, you can buy me a cup of coffee :)

Main metrics

Overview
Name With Ownerflatpickr/flatpickr
Primary LanguageTypeScript
Program languageCSS (Language Count: 5)
Platform
License:MIT License
所有者活动
Created At2015-08-10 23:52:45
Pushed At2024-08-02 14:11:21
Last Commit At2022-09-26 20:19:31
Release Count150
Last Release Namev4.6.13 (Posted on )
First Release Namev1.0 (Posted on )
用户参与
Stargazers Count16.3k
Watchers Count201
Fork Count1.5k
Commits Count2.9k
Has Issues Enabled
Issues Count2206
Issue Open Count711
Pull Requests Count399
Pull Requests Open Count126
Pull Requests Close Count165
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private