flatpickr

lightweight and powerful datetimepicker with no dependencies

Github星跟踪图

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 :)

概览

名称与所有者flatpickr/flatpickr
主编程语言TypeScript
编程语言CSS (语言数: 5)
平台
许可证MIT License
发布数150
最新版本名称v4.6.13 (发布于 )
第一版名称v1.0 (发布于 )
创建于2015-08-10 23:52:45
推送于2024-05-09 14:43:51
最后一次提交2022-09-26 20:19:31
星数16k
关注者数205
派生数1.4k
提交数2.9k
已启用问题?
问题数2162
打开的问题数674
拉请求数399
打开的拉请求数115
关闭的拉请求数155
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部