Skip to content
项目

fymmot/inclusive-dates

在 GitHub 查看

关于

一款易于使用的日期选择器,现已提供 Web Component 版本!通过 Chrono.js 支持自然语言输入。可通过键盘和屏幕阅读器完整访问。欢迎贡献!

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Tommy's inclusive datepicker

Your browser does not support the video tag.

A human-friendly and fully accessible datepicker with support for natural language input. Now as a standard Web Component written in Typescript!

Try typing "tomorrow" or "in 10 days"!

Calendar is forked from the excellent sqrrl/wc-datepicker

Github test action status Github docs action status NPM version

Features

🧏‍ Natural language input

Text field accepts natural language input using Chrono.js. Try typing "yesterday", "May tenth" or "in one year"!.

🧏‍ Accessibility first

Built to support users of assistive technology. Follows the WAI-ARIA APG Datepicker dialog pattern.

🖼 Framework-agnostic

Standard Web Component that works with any framework – or no framework at all.

🦶 Small footprint

The component is ~45KB minified and gzipped with Chrono.js. If you do not need language parsing, the original sqrrl/wc-datepicker calendar is ~4KB.

🪁 Low dependency

External dependencies limited to accessibility utils (@react-aria/live-announcer, @a11y/focus-trap and aria-hidden).

💪 Strongly typed

Written in TypeScript.

🇪🇺 Localizable

Customizable labels and date formats.

🌈 Customizable

Semantic markup with no built-in styles.

🧪 Well tested

Quality assured by means of unit tests.

Documentation & Demo

https://fymmot.github.io/inclusive-dates/

探索相关项目

加载中…