@antadesign/anta
    Preparing search index...

    Function InputDateUnreviewed

    • <InputDate> — a date (or date-time) field that replaces the native type="date" / type="datetime-local" input, composed from Input + Menu + Calendar (no a-inputdate element; the wrapper is the coordinator). The field accepts free text and resolves it on commit (blur / Enter) with a lenient, locale-aware parser, then rewrites the entry to the canonical format; an unrecognized entry marks the field critical and keeps the text. Clicking the field (or pressing ArrowDown) opens a Calendar in a menu; a leading calendar icon marks the affordance. Mouse-open keeps focus in the field so you can keep typing; ArrowDown moves focus into the grid. With time, a time row sits under the grid. The value is an ISO YYYY-MM-DD string, or YYYY-MM-DDTHH:mm with time.

      Controlled (value + onValueChange) or uncontrolled (defaultValue). Requires @antadesign/anta/elements (client-side only).

      Parameters

      Returns any

      Not SSR-safe (it embeds Calendar): it reads the current date (Temporal.Now) and locale (navigator.language) at render, so server and client output diverge and hydration mismatches. Render it client-side only.

      <InputDate label="Starts" time defaultValue="2026-06-15T09:00" onValueChange={(v) => save(v)} />