Accessible date picker
A date-picking calendar fully usable with the keyboard, with closed days, a minimum lead time and checked manual entry.
- Tailwind
- React
- CSS
- WordPress
Description
For a cake order, a booking or an appointment: the date field accepts typing in dd/mm/yyyy format, and the calendar button opens the month grid. Closed days (here Sunday and Monday) and those within the 48-hour lead time are struck through and announced as “unavailable”; the range ends after 90 days. The keyboard follows the usual accessible calendar patterns (W3C APG): arrows to change day or week, Home and End for the start and end of the week, Page Up and Page Down for the month, Enter to choose, Escape to close; only one day is reachable with Tab (roving focus) and focus returns to the button after choosing. Each day carries its full name (“Wednesday 4 November 2026”), today is marked aria-current, the month is announced through aria-live. A date typed by hand is checked with a clear message. Closed days and lead time are set with two attributes, dates formatted with Intl. 44 px targets, a calendar that fits at 360 px, AA contrast in light and dark mode.
Code
Loading the code…
The code of this component in
Archive contents
selecteur-date-calendrier-html-tailwind.zip3 files · 7 Ko
- index.html14 Ko
- README.md4 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A recruitment form for small businesses: target position, introduction, CV checked in the browser and GDPR consent, with inline errors.
- Tailwind
- React
- CSS
- WordPress

A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.
- Tailwind
- React
- CSS
- WordPress

Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.
- Tailwind
- React
- CSS
- WordPress

A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.
- Tailwind
- React
- CSS
- WordPress