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-04-05 16:43:33
最后一次提交2022-09-26 20:19:31
星數16k
關注者數204
派生數1.4k
提交數2.9k
已啟用問題?
問題數2159
打開的問題數672
拉請求數399
打開的拉請求數115
關閉的拉請求數154
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部