Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

flatpickr

> 编程语言
Open source

lightweight, powerful javascript datetimepicker with no dependencies

16.5K stars0 likes0 views
WebsiteGitHub

About

lightweight, powerful javascript datetimepicker with no dependencies

flatpickr - javascript datetime picker

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:

  • angular2+-flatpickr addon
  • angularJS-flatpickr addon
  • ember-flatpickr addon
  • Preact Component
  • React Component
  • Stimulus.js Controller
  • Svelte Component
  • vue-flatpickr component
  • lit-flatpickr component

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

Issues· 860 open

View all issuesOpen on GitHub
  • #1646

    Become a flatpickr dev!

    help-neededUpdated Sep 17, 2026
  • #3138

    Flatpickr fails when rendered inside a different window/document

    Updated Sep 16, 2026
  • #3122

    Flatpickr doesn't work with VDialog (and most likely as well doesn't work with any Dialog/Modal outside of Vue)

    Updated Sep 13, 2026
  • #3135

    Correct way to handle invalid date

    Updated Sep 13, 2026
  • #3123

    Calc issue

    Updated Sep 13, 2026
  • #1405

    Showing one calendar in responsive and two calendars on desktop

    Updated Sep 9, 2026
  • #3126

    DOM-based XSS via unsafe configuration values passed into Flatpickr options

    Updated Aug 14, 2026
  • #2520

    Next release date

    Updated Aug 10, 2026
  • #3133

    New plugin for select only year

    Updated Jul 13, 2026
  • #3067

    Month select plugin won't update when using the method setDate

    Updated Jun 24, 2026

> Tags

TypeScriptdatedatepickerdaterangedaterangepicker

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言