Kodza

Date Range

Two real date inputs behind one field and a two-month calendar: the ink band follows the pointer from the start to the end, the length counted as it goes, with optional shortcuts. Full keyboard.

Forms No dependencies daterangecalendarformkeyboard Added Nov 2026
/anim/date-range/ GitHub Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Add the Kodza Date Range to my page.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-date-range.html
<div class="kodza-date-range" role="group" aria-label="Stay in Le Havre" data-locale="en-GB" data-unit="night">
  <label class="kodza-date-range__end"><span class="kodza-date-range__name">Check-in</span><input class="kodza-date-range__native" type="date" name="check-in" value="2026-11-13"></label>
  <label class="kodza-date-range__end"><span class="kodza-date-range__name">Check-out</span><input class="kodza-date-range__native" type="date" name="check-out" value="2026-11-16"></label>
</div>

<div class="kodza-date-range" role="group" aria-label="Report period" data-locale="en-US" data-presets="last-7 last-30 this-month last-month">
  <label class="kodza-date-range__end"><span class="kodza-date-range__name">From</span><input class="kodza-date-range__native" type="date" name="from" value="2026-10-01"></label>
  <label class="kodza-date-range__end"><span class="kodza-date-range__name">To</span><input class="kodza-date-range__native" type="date" name="to" value="2026-10-31"></label>
</div>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
On a day of the calendar
  • Previous or next day←/→
  • Previous or next week↑/↓
  • First or last day of the weekHome/End
  • Previous or next monthPage Up/Page Down
  • Picks the start, then the end, and closesEnter/Space
On the field
  • Opens the calendar on that dateEnter/Space
Anywhere, while it's open
  • Closes it, focus back on the fieldEsc

More like this

More in Forms