Build Components

Almanac

Date picker. One date or a range, typed in your format, with month and year views and earliest/latest dates.

Component
Date picker
Pattern
APG Date Picker Dialog
Outputs
React + Tailwind, HTML/CSS/JS
Status
In stock, tested

Test bench

Runs the exported code, not a mock-up.

Output

Almanac · React + TailwindFull width

Keyboard map
KeysWhat happens
EnterorSpaceOn the calendar button: open the calendar. On a day: pick it.
Left arroworRight arrowPrevious or next day.
Up arroworDown arrowSame day in the previous or next week.
HomeorEndFirst or last day of the week.
Page UporPage DownPrevious or next month.
Shift + Page UporShift + Page DownPrevious or next year.
EnterOn the month and year heading: pick a year, then a month.
EscapeIn the year or month view: back to the days. Otherwise: close and return to the calendar button.
TaborShift + TabMove between the heading buttons and the calendar. Focus stays inside.

Take it home

React + Tailwind CSS v4: install with one command, or copy the file. Your options are already in it.

npx shadcn@latest add "/r/date-picker.json"

Run it in your project root. It writes components/date-picker.tsx with the options you set here. Needs Tailwind CSS v4 and a project set up for the shadcn CLI (npx shadcn@latest init).