awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
flatpickr avatar

flatpickr/flatpickr

0
View on GitHub↗
16,469 星标·1,453 分支·TypeScript·MIT·5 次浏览flatpickr.js.org↗

Flatpickr

Flatpickr is a lightweight, dependency-free JavaScript library designed to provide a modular date and time selection interface for web applications. It functions as a versatile web component that integrates into existing forms, offering a consistent user experience for picking single dates, ranges, or multiple values while maintaining a clear separation between human-readable display strings and machine-readable data.

The library distinguishes itself through a robust configuration-driven architecture that allows for dynamic runtime updates and extensive customization of date formatting via a token-based engine. It prioritizes accessibility and usability by automatically detecting mobile environments to swap the custom interface for native browser pickers, while simultaneously providing developers with granular control over selection constraints, including date blacklisting, whitelisting, and boundary enforcement.

Beyond core selection, the project supports a wide range of functional requirements such as internationalization, visual theming, and lifecycle management through event hooks. It accommodates diverse integration needs by offering support for legacy browsers, jQuery plugins, and custom DOM element attachment, ensuring that the calendar can be rendered either as a standard popup or as an inline element within a page layout.

Features

  • Date and Time Pickers - Provides a lightweight interface for users to choose specific dates and times from a calendar or clock input.
  • Date Selection Components - Links two separate input fields to allow users to define a start and end date by selecting from the interface.
  • Selection Constraints - Enables granular control over selectable dates by allowing developers to blacklist specific days or ranges to prevent invalid user input.
  • Date Range Schedulers - Enables users to define start and end dates across single or multiple input fields for booking and planning workflows.
  • Native Fallbacks - Detects mobile environments to swap the custom JavaScript interface for native browser date pickers while preserving underlying data constraints.
  • Modular UI Components - Integrates into existing forms as a modular interface element to provide consistent date and time input.
  • Frontend Formatters - Parses and displays date strings in custom formats while maintaining machine-readable values for application logic.
  • Input Formatters - Configures how dates are parsed and displayed to users, including support for international standards and human-readable alternative input fields.
  • Mobile Input Optimization - Switches to native date and time pickers on mobile devices to provide a familiar user experience.
  • Mobile-Optimized Pickers - Optimizes date input experiences by switching to native mobile pickers while maintaining consistent behavior across desktop browsers.
  • Internationalization - Adapts date and time displays to specific languages and regional conventions to ensure global usability.
  • Human-Readable Formatters - Displays user-friendly date strings in the input field while maintaining machine-readable formats in the underlying data field.
  • Token-Based Formatters - Parses and serializes date objects using a custom pattern-matching engine that maps specific character tokens to date and time components.
  • Multiple Selection - Allows users to pick several individual dates or a continuous range of dates within a single calendar instance.
  • Date and Time Formatting - Transforms date and time values into custom string representations using a wide range of tokens for calendar units.
  • Date and Time Libraries - Adapts date and time displays to specific languages and regional conventions by applying predefined or custom locale settings.
  • Date String Parsers - Converts date strings or timestamps into standard date objects for programmatic use within application logic.
  • Date Formatting Utilities - Converts date objects into string representations based on provided patterns to ensure consistent display.
  • Lifecycle Event Hooks - Allows developers to execute custom logic during lifecycle events like opening, closing, or selecting dates.
  • Inline Rendering - Supports rendering the interface in an always-visible state on the page instead of as a popup.
  • Date Input Validation - Restricts user date selection through minimum and maximum boundaries or custom logic to ensure data integrity.
  • Input Decouplers - Maintains a hidden machine-readable data field alongside a human-readable display input to ensure consistent formatting.

Star 历史

flatpickr/flatpickr 的 Star 历史图表flatpickr/flatpickr 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

flatpickr/flatpickr 是做什么的?

Flatpickr is a lightweight, dependency-free JavaScript library designed to provide a modular date and time selection interface for web applications. It functions as a versatile web component that integrates into existing forms, offering a consistent user experience for picking single dates, ranges, or multiple values while maintaining a clear separation between human-readable display strings and machine-readable data.

flatpickr/flatpickr 的主要功能有哪些?

flatpickr/flatpickr 的主要功能包括:Date and Time Pickers, Date Selection Components, Selection Constraints, Date Range Schedulers, Native Fallbacks, Modular UI Components, Frontend Formatters, Input Formatters。

flatpickr/flatpickr 有哪些开源替代品?

flatpickr/flatpickr 的开源替代品包括: taiga-family/taiga-ui — Taiga UI is an Angular UI component library and accessible design system used for building enterprise web interfaces.… dbushell/pikaday — Pikaday is a lightweight JavaScript datepicker widget and dependency-free UI component. It provides a graphical… moment/moment — Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and… dangrossman/daterangepicker — This is a JavaScript date and time selector and a jQuery-based component used to capture single dates or date ranges… patchthecode/jtapplecalendar — JTAppleCalendar is a customizable calendar component and date picker library for iOS applications built with Swift. It… pikaday/pikaday — Pikaday is a lightweight JavaScript datepicker library and client-side date input manager. It provides a standalone…

Flatpickr 的开源替代方案

相似的开源项目,按与 Flatpickr 的功能重合度排序。
  • taiga-family/taiga-uitaiga-family 的头像

    taiga-family/taiga-ui

    4,002在 GitHub 上查看↗

    Taiga UI is an Angular UI component library and accessible design system used for building enterprise web interfaces. It provides a comprehensive collection of reusable interface elements and layout tools, functioning as a mobile-first UI kit with responsive components that adapt to different device capabilities. The library distinguishes itself through an integrated data visualization library featuring various chart types and a dedicated form management framework with built-in validation and formatting for specialized data. It also features AI-driven development workflows by integrating comp

    TypeScriptangularbest-practicescdk
    在 GitHub 上查看↗4,002
  • dbushell/pikadaydbushell 的头像

    dbushell/Pikaday

    8,094在 GitHub 上查看↗

    Pikaday is a lightweight JavaScript datepicker widget and dependency-free UI component. It provides a graphical calendar interface for selecting dates that binds to form fields without requiring external libraries or frameworks. The project features a localizable calendar interface, allowing for the customization of month names, weekday labels, and regional text directions to support multiple languages. Its programmable API manages input formatting and selection restrictions. The tool covers a broad range of date selection capabilities, including date input validation, range restrictions, an

    JavaScript
    在 GitHub 上查看↗8,094
  • moment/momentmoment 的头像

    moment/moment

    47,965在 GitHub 上查看↗

    Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and times. It provides a system for converting date strings into structured objects using the ISO 8601 standard or custom tokens. The library includes a timezone management tool for handling UTC offsets and geographic timezones, ensuring accurate date calculations across different regions. It features an internationalized date formatter and a relative time calculator to render timestamps as human-friendly durations adapted to various cultural locales and languages. The project co

    JavaScript
    在 GitHub 上查看↗47,965
  • dangrossman/daterangepickerdangrossman 的头像

    dangrossman/daterangepicker

    10,990在 GitHub 上查看↗

    This is a JavaScript date and time selector and a jQuery-based component used to capture single dates or date ranges through a calendar dropdown interface. It serves as a web-based tool for selecting specific days along with hours and minutes for scheduling and data filtering. The project includes support for regional date localization, allowing date displays and labels to be translated and formatted to match different languages and regional requirements. The component provides capabilities for input validation through date constraints and the definition of selectable time windows. Users can

    JavaScript
    在 GitHub 上查看↗10,990
  • 查看 Flatpickr 的所有 30 个替代方案→