Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

A human-friendly datepicker โ€“ now as a Web Component! Supports natural language input through Chrono.js. Fully accessible with keyboard and screen reader. Contributions welcome!
https://github.com/fymmot/inclusive-dates

accessibility datepicker stenciljs typescript vanilla-js wai-aria webcomponents

Last synced: about 2 months ago
JSON representation

A human-friendly datepicker โ€“ now as a Web Component! Supports natural language input through Chrono.js. Fully accessible with keyboard and screen reader. Contributions welcome!

Awesome Lists containing this project

README

        


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/**