component

Input Date

A typed date input that opens a calendar popover for picking. Combines Input, Popover, and Calendar into a single component, with a locale-aware parser that accepts ISO YYYY-MM-DD plus the locale’s dateStyle: "short" form.

Two variants ship from the same package: InputDate for a single date and InputDateRange for a start / end pair sharing one calendar in range mode.

Default

---
import InputDate from "../InputDate.astro";
import { stack } from "@pindoba/styled-system/patterns";
---

<div class={stack({ gap: "md" })}>
  <InputDate id="astro-demo-input-date-default" />
</div>

Range

---
import InputDateRange from "../InputDateRange.astro";
import { stack } from "@pindoba/styled-system/patterns";
---

<div class={stack({ gap: "md" })}>
  <InputDateRange id="astro-demo-input-date-range" />
</div>