# Date picker

Choose a date with a native input and calendar.

Access: pro. Category: Forms. Kind: primitive.

## When to use

- Use it when a product interface needs choose a date with a native input and calendar.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.

## Alternatives

- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than date picker.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Date picker

```sh
npx shadcn@latest add @tidal-pro/date-picker
```

Stylesheets: `components/ui/tidal.css`, `components/ui/date-picker.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/date-picker.css";
import{TidalDatePicker}from"./components/ui/date-picker";
export default()=><div className="tidal-scope"><TidalDatePicker label={"Demo"} onValueChange={() => {}} value={"value"}/></div>;
```

## Structured props

- `TidalDateDigits.text: string`: Required text value accepted by this exported component.
- `TidalDatePicker.label: string`: Required label value accepted by this exported component.
- `TidalDatePicker.onValueChange: (value: string | null) => void`: Callback invoked when the value change interaction is proposed.
- `TidalDatePicker.value: string | null`: Required value value accepted by this exported component.
- `TidalDatePicker.clearable?: boolean | undefined` (default true): Optional clearable value accepted by this exported component.
- `TidalDatePicker.description?: string | undefined`: Optional description value accepted by this exported component.
- `TidalDatePicker.dir?: "ltr" | "rtl" | undefined`: Optional dir value accepted by this exported component.
- `TidalDatePicker.error?: string | undefined`: Optional error value accepted by this exported component.
- `TidalDatePicker.isDateDisabled?: ((iso: string) => boolean) | undefined`: Optional is date disabled value accepted by this exported component.
- `TidalDatePicker.labels?: Partial<{ open: string; clear: string; previous: string; next: string; month: string; year: string; today: string; close: string; unavailable: string; invalid: string; instructions: string; yearRange: (minimum: number, maximum: number) => string; }> | undefined` (default {}): Optional labels value accepted by this exported component.
- `TidalDatePicker.locale?: string | undefined` (default "en-US"): Optional locale value accepted by this exported component.
- `TidalDatePicker.max?: string | undefined`: Optional max value accepted by this exported component.
- `TidalDatePicker.min?: string | undefined`: Optional min value accepted by this exported component.
- `TidalDatePicker.rootClassName?: string | undefined` (default ""): Optional root class name value accepted by this exported component.
- `TidalDatePicker.showToday?: boolean | undefined` (default true): Optional show today value accepted by this exported component.
- `TidalDatePicker.theme?: "light" | "dark" | undefined`: Optional theme value accepted by this exported component.
- `TidalDatePicker.today?: string | undefined`: Optional today value accepted by this exported component.
- `TidalDatePicker.weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined` (default 1): Optional week starts on value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/date-picker.tsx) | [Manifest](https://tidalui.com/examples/date-picker.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { useEffect, useLayoutEffect, useRef, useState } from "react";

import { ArrowUpRight, Check, RotateCcw } from "lucide-react";

import { TidalDatePicker, TidalDateDigits, tidalParseDate, tidalFormatDate } from "./components/ui/date-picker";

import { TidalButton } from "./components/ui/tidal-button";

import "./components/ui/date-picker.css";



const tidalExampleStyles = ".tidal-scope .date-picker-specimen {\n  width: 100%;\n  max-width: 720px;\n  padding: 28px;\n  border: 1px solid var(--t-border);\n  border-radius: var(--t-radius-card);\n  background: var(--t-surface);\n  box-shadow:\n    0 2px 3px #00000004,\n    0 18px 35px -30px #00000040;\n}\n.tidal-scope .date-picker-specimen > h3 {\n  font-size: 29px;\n  font-weight: 500;\n  line-height: 1.15;\n  letter-spacing: -1.1px;\n  margin: 15px 0 26px;\n}\n.tidal-scope .date-picker-specimen > h3 em {\n  font:\n    italic 37px/1.15 \"Instrument Serif\",\n    Georgia,\n    serif;\n  letter-spacing: -0.8px;\n}\n.tidal-scope .date-demo-stage {\n  padding: 7px;\n  margin: 0 -7px;\n  overflow: hidden;\n  transition: height 420ms var(--t-ease-out);\n}\n.tidal-scope .date-demo-content {\n  display: flow-root;\n}\n.tidal-scope .date-demo-layout {\n  display: grid;\n  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);\n  gap: 28px;\n  align-items: center;\n}\n.tidal-scope .date-demo-layout form {\n  min-width: 0;\n}\n.tidal-scope .date-demo-form-caption {\n  display: block;\n  font-size: 11px;\n  letter-spacing: 1.3px;\n  color: var(--t-muted);\n  margin-bottom: 24px;\n}\n.tidal-scope .date-demo-paper {\n  position: relative;\n  min-width: 0;\n  border: 1px solid var(--t-ink);\n  border-radius: 12px;\n  background: var(--t-ink);\n  color: var(--t-surface);\n  padding: 20px;\n  box-shadow:\n    0 14px 20px -15px #00000050,\n    inset 0 1px 0 #ffffff12;\n  overflow: hidden;\n  animation: date-paper-enter 620ms var(--t-ease-out) both;\n}\n.tidal-scope .date-demo-paper:before,\n.tidal-scope .date-demo-paper:after {\n  content: \"\";\n  position: absolute;\n  top: -6px;\n  width: 13px;\n  height: 13px;\n  border: 1px solid #80808060;\n  background: var(--t-surface);\n  border-radius: 50%;\n}\n.tidal-scope .date-demo-paper:before {\n  left: 20px;\n}\n.tidal-scope .date-demo-paper:after {\n  right: 20px;\n}\n.tidal-scope .date-demo-paper-header {\n  display: flex;\n  justify-content: space-between;\n  gap: 8px;\n  font-size: 11px;\n  letter-spacing: 1.3px;\n  opacity: 0.65;\n  padding-top: 3px;\n  margin-bottom: 26px;\n}\n.tidal-scope .date-demo-paper-month {\n  font-size: 11px;\n  letter-spacing: 0.9px;\n  text-transform: uppercase;\n  animation: date-month-enter 280ms var(--t-ease-out) both;\n}\n.tidal-scope .date-demo-paper-number {\n  font-size: 94px;\n  line-height: 1.1;\n  font-weight: 500;\n  letter-spacing: -5px;\n  margin: 10px 0 14px;\n}\n.tidal-scope .date-demo-paper time {\n  display: block;\n  max-width: 240px;\n  font-size: 11px;\n  line-height: 1.5;\n  opacity: 0.8;\n}\n.tidal-scope .date-demo-week {\n  display: grid;\n  position: relative;\n  grid-template-columns: repeat(7, minmax(0, 1fr));\n  isolation: isolate;\n  font-size: 11px;\n  height: 30px;\n  margin-top: 20px;\n  border-top: 1px solid #80808055;\n  padding-top: 8px;\n}\n.tidal-scope .date-demo-week > span:not(.date-demo-week-marker) {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  color: inherit;\n  opacity: 0.5;\n  transition:\n    opacity 220ms,\n    color 220ms;\n  z-index: 1;\n}\n.tidal-scope .date-demo-week > span[data-active] {\n  color: var(--t-ink);\n  opacity: 1;\n}\n.tidal-scope .date-demo-week-marker {\n  position: absolute;\n  width: calc(100% / 7);\n  height: 22px;\n  left: 0;\n  top: 8px;\n  border-radius: 5px;\n  background: var(--t-surface);\n  transition: transform 420ms var(--t-ease-out);\n}\n.tidal-scope .date-demo-paper > p {\n  font-size: 11px;\n  line-height: 1.6;\n  margin: 12px 0 0;\n  color: inherit;\n  opacity: 0.65;\n}\n.tidal-scope .date-demo-paper-empty {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  min-height: 205px;\n  gap: 17px;\n  text-align: center;\n}\n.tidal-scope .date-demo-paper-empty > svg {\n  opacity: 0.5;\n}\n.tidal-scope .date-demo-paper-empty p {\n  color: inherit;\n  font-size: 13px;\n  line-height: 1.6;\n}\n.tidal-scope .date-demo-actions {\n  display: flex;\n  gap: 8px;\n  margin-top: 22px;\n}\n.tidal-scope .date-demo-actions .tidal-button {\n  flex: 1;\n  min-width: 0;\n  padding: 0 9px;\n  font-size: 11px;\n  outline-offset: -5px;\n}\n.tidal-scope .date-demo-actions .tidal-button:focus-visible {\n  outline-color: currentColor;\n}\n.tidal-scope .date-demo-status {\n  display: block;\n  font-size: 11px;\n  color: var(--t-muted);\n  line-height: 1.5;\n  margin-top: 10px;\n}\n.tidal-scope .date-demo-note {\n  font-size: 11px;\n  color: var(--t-muted);\n  line-height: 1.65;\n  margin: 22px 0 0;\n}\n.tidal-scope .date-demo-complete {\n  text-align: center;\n  padding: 16px 5px 22px;\n  animation: date-paper-enter 420ms var(--t-ease-out) both;\n}\n.tidal-scope .date-demo-complete > span {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 44px;\n  height: 44px;\n  background: var(--t-ink);\n  color: var(--t-surface);\n  border-radius: 50%;\n  margin: 0 auto 15px;\n}\n.tidal-scope .date-demo-complete h4 {\n  font-size: 22px;\n  font-weight: 500;\n  letter-spacing: -0.7px;\n  outline-offset: -5px;\n}\n.tidal-scope .date-demo-complete p {\n  font-size: 11px;\n  color: var(--t-muted);\n  margin-top: 9px;\n}\n.tidal-scope .date-picker-specimen[data-phase=\"set\"] .date-demo-layout {\n  grid-template-columns: 1fr;\n}\n.tidal-scope .date-picker-specimen[data-phase=\"set\"] .date-demo-paper {\n  max-width: 290px;\n  width: 100%;\n  margin-inline: auto;\n}\n.tidal-scope .date-demo-saved-actions {\n  justify-content: center;\n}\n.tidal-scope .date-demo-saved-actions .tidal-button {\n  flex: 0 1 auto;\n  padding: 0 16px;\n}\n.tidal-scope .date-demo-saved-actions .tidal-button:last-child {\n  width: 44px;\n  padding: 0;\n}\n@keyframes date-paper-enter {\n  from {\n    opacity: 0;\n    transform: translateY(8px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n@keyframes date-month-enter {\n  from {\n    opacity: 0;\n    transform: translateY(3px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n@media (max-width: 600px) {\n  .tidal-scope .date-picker-specimen {\n    padding: 16px;\n  }\n  .tidal-scope .date-picker-specimen > h3 {\n    font-size: 25px;\n    margin: 12px 0 16px;\n  }\n  .tidal-scope .date-picker-specimen > h3 em {\n    font-size: 32px;\n  }\n  .tidal-scope .date-demo-layout {\n    grid-template-columns: 1fr;\n    gap: 16px;\n  }\n  .tidal-scope .date-demo-form-caption {\n    display: none;\n  }\n  .tidal-scope .date-demo-paper {\n    padding: 16px;\n  }\n  .tidal-scope .date-demo-paper-header {\n    margin-bottom: 10px;\n  }\n  .tidal-scope .date-demo-paper-number {\n    font-size: 68px;\n    margin: 7px 0 10px;\n  }\n  .tidal-scope .date-demo-paper-empty {\n    min-height: 176px;\n  }\n  .tidal-scope .date-demo-actions {\n    margin-top: 14px;\n  }\n  .tidal-scope .date-demo-week {\n    margin-top: 12px;\n  }\n  .tidal-scope .date-demo-paper > p {\n    margin-top: 8px;\n  }\n  .tidal-scope .date-demo-note {\n    font-size: 11px;\n    margin-top: 14px;\n  }\n}\n@media (prefers-reduced-motion: reduce) {\n  .tidal-scope .date-picker-specimen * {\n    animation: none !important;\n    transition: none !important;\n  }\n  .tidal-scope .date-demo-paper,\n  .tidal-scope .date-demo-complete,\n  .tidal-scope .date-demo-paper-month {\n    transform: none;\n  }\n}";

const sampleToday = "2026-10-14";

function unavailable(iso: string) {
  const day = tidalParseDate(iso)?.getUTCDay();
  return day === 0 || day === 6 || iso === "2026-11-26";
}

export function DatePickerDemo() {
  const [date, setDate] = useState<string | null>("2026-11-12"),
    [error, setError] = useState("");
  const [phase, setPhase] = useState<"editing" | "setting" | "set">("editing"),
    [height, setHeight] = useState<number>();
  const input = useRef<HTMLInputElement>(null),
    title = useRef<HTMLHeadingElement>(null),
    content = useRef<HTMLDivElement>(null),
    restore = useRef(false),
    timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);
  const focusOwner = useRef<HTMLElement | null>(null);
  const parsed = tidalParseDate(date),
    valid = Boolean(
      parsed &&
        date! >= sampleToday &&
        date! <= "2026-12-31" &&
        !unavailable(date!),
    );
  const days = parsed
    ? Math.round(
        (parsed.getTime() - tidalParseDate(sampleToday)!.getTime()) / 86400000,
      )
    : 0;
  const weekday = parsed ? (parsed.getUTCDay() + 6) % 7 : 0;
  useEffect(() => () => clearTimeout(timer.current), []);
  useLayoutEffect(() => {
    const active = document.activeElement;
    const canMoveFocus =
      active === document.body || active === focusOwner.current;
    if (phase === "set" && canMoveFocus) {
      title.current?.focus({ preventScroll: true });
      focusOwner.current = null;
    } else if (phase === "editing" && restore.current) {
      restore.current = false;
      if (canMoveFocus) input.current?.focus({ preventScroll: true });
      focusOwner.current = null;
    }
  }, [phase]);
  useLayoutEffect(() => {
    const node = content.current;
    if (!node) return;
    const measure = () => {
      const css = getComputedStyle(node.parentElement!);
      setHeight(
        node.offsetHeight +
          Number.parseFloat(css.paddingTop) +
          Number.parseFloat(css.paddingBottom),
      );
    };
    measure();
    const ro = new ResizeObserver(measure);
    ro.observe(node);
    return () => ro.disconnect();
  }, []);
  function edit() {
    clearTimeout(timer.current);
    focusOwner.current =
      document.activeElement instanceof HTMLElement
        ? document.activeElement
        : null;
    setError("");
    restore.current = true;
    setPhase("editing");
    if (phase === "editing") {
      restore.current = false;
      input.current?.focus({ preventScroll: true });
    }
  }
  function reset() {
    setDate("2026-11-12");
    edit();
  }
  return (
    <div className="date-picker-specimen" data-phase={phase}>
      <div className="date-demo-stage" style={{ height }}>
        <div ref={content} className="date-demo-content">
          {phase === "set" ? (
            <div className="date-demo-complete">
              <span aria-hidden="true">
                <Check size={20} />
              </span>
              <h4 ref={title} tabIndex={-1}>
                A day to begin.
              </h4>
              <p>
                Kept in this sample. No launch or appointment was scheduled.
              </p>
            </div>
          ) : null}
          <div className="date-demo-layout">
            {phase !== "set" ? (
              <form
                noValidate
                onSubmit={(e) => {
                  e.preventDefault();
                  if (!valid) {
                    setError(
                      "Choose an available weekday in this sample range.",
                    );
                    input.current?.focus({ preventScroll: true });
                    return;
                  }
                  focusOwner.current =
                    (e.nativeEvent as SubmitEvent).submitter instanceof
                    HTMLElement
                      ? (e.nativeEvent as SubmitEvent).submitter
                      : document.activeElement instanceof HTMLElement
                        ? document.activeElement
                        : null;
                  setPhase("setting");
                  timer.current = setTimeout(() => setPhase("set"), 550);
                }}
              >
                <span className="date-demo-form-caption">
                  THE FIRST LITTLE MILESTONE
                </span>
                <TidalDatePicker
                  ref={input}
                  label="Sample launch date"
                  value={date}
                  onValueChange={(next) => {
                    setDate(next);
                    setError("");
                  }}
                  name="launch-date"
                  min={sampleToday}
                  max="2026-12-31"
                  today={sampleToday}
                  isDateDisabled={unavailable}
                  required
                  disabled={phase === "setting"}
                  description="Fictional weekdays only. November 26 is held in this sample."
                  error={error}
                />
                <div className="date-demo-actions">
                  <TidalButton
                    type="button"
                    variant="secondary"
                    onClick={phase === "setting" ? edit : reset}
                  >
                    {phase === "setting" ? "Cancel sample" : "Reset sample"}
                  </TidalButton>
                  <TidalButton type="submit" loading={phase === "setting"}>
                    {phase === "setting" ? "Setting date" : "Set sample date"}
                    {phase === "editing" ? <ArrowUpRight size={13} /> : null}
                  </TidalButton>
                </div>
                {phase === "setting" ? (
                  <span role="status" className="date-demo-status">
                    Setting this local sample…
                  </span>
                ) : null}
              </form>
            ) : null}
            <section
              className="date-demo-paper"
              aria-label="Sample release date"
              data-empty={!parsed || undefined}
            >
              <div className="date-demo-paper-header">
                <span>THE RELEASE DATE</span>
                <span>D / 029</span>
              </div>
              {parsed ? (
                <>
                  <div
                    className="date-demo-paper-month"
                    key={date!.slice(0, 7)}
                    aria-hidden="true"
                  >
                    {tidalFormatDate(date!, "en-US", {
                      month: "long",
                      year: "numeric",
                    })}
                  </div>
                  <div className="date-demo-paper-number" aria-hidden="true">
                    <TidalDateDigits
                      text={String(parsed.getUTCDate()).padStart(2, "0")}
                    />
                  </div>
                  <time dateTime={date!}>
                    {tidalFormatDate(date!, "en-US", {
                      weekday: "long",
                      month: "long",
                      day: "numeric",
                      year: "numeric",
                    })}
                  </time>
                  <div className="date-demo-week" aria-hidden="true">
                    <span
                      className="date-demo-week-marker"
                      style={{ transform: `translateX(${weekday * 100}%)` }}
                    />
                    {["M", "T", "W", "T", "F", "S", "S"].map((d, i) => (
                      <span key={i} data-active={i === weekday || undefined}>
                        {d}
                      </span>
                    ))}
                  </div>
                  <p>{days} days from the sample today.</p>
                </>
              ) : (
                <div className="date-demo-paper-empty">
                  <CalendarPlaceholder />
                  <p>
                    Pick the day.
                    <br />
                    We’ll put it here.
                  </p>
                </div>
              )}
            </section>
          </div>
          {phase === "set" ? (
            <div className="date-demo-actions date-demo-saved-actions">
              <TidalButton variant="secondary" onClick={edit}>
                Adjust sample
              </TidalButton>
              <TidalButton
                variant="secondary"
                onClick={reset}
                aria-label="Reset original date"
              >
                <RotateCcw size={14} />
              </TidalButton>
            </div>
          ) : null}
        </div>
      </div>
      <p className="date-demo-note">
        Fictional availability. Nothing is scheduled, sent or stored.
      </p>
    </div>
  );
}

function CalendarPlaceholder() {
  return (
    <svg viewBox="0 0 48 48" width="48" height="48" aria-hidden="true">
      <rect
        x="7"
        y="11"
        width="34"
        height="31"
        rx="6"
        fill="none"
        stroke="currentColor"
        strokeWidth="1.5"
      />
      <path
        d="M7 21h34M16 7v9M32 7v9"
        stroke="currentColor"
        strokeWidth="1.5"
        strokeLinecap="round"
      />
      <circle cx="18" cy="30" r="2" fill="currentColor" opacity=".35" />
      <circle cx="29" cy="30" r="2" fill="currentColor" opacity=".35" />
    </svg>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <DatePickerDemo />
    </div>
  );
}

```

## Gotchas

- Keep field state, validation results, submission, and persistence in the host form workflow.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-calendar-offset-y","--t-calendar-viewport-height","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order.","Arrow-key behavior follows the exported composite-control implementation.","Escape dismisses the open overlay where the underlying primitive supports dismissal."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"The implementation includes reduced-motion behavior; verify it with the consumer's final content."}

Required label, controlled value:string|null and onValueChange; use canonical Gregorian YYYY-MM-DD, years0001..9999, with useState<string|null>. A real type=date input retains native name/form/ref/required/disabled/readOnly/native editing and submission; native display follows browser locale while the decorative readout/calendar use locale(defaulten-US). Date-only strings avoid timestamp/timezone conversion. Popup and Clear propose values without forging native change events; onChange/onInput receive real native events only. Re-selecting the current date closes without a value callback. Consumers retain ownership and may reject proposals. min/max ISO bounds and optional pure isDateDisabled(iso) apply to both calendar picks and native custom validity; consumer error also blocks editable native submission; native readOnly fields retain HTML validation semantics and do not participate in constraint validation. Invalid/reversed bounds disable the field/picker and link configuration feedback. Malformed/out-of-bounds/blocked controlled values remain caller-owned, render invalid and link feedback; malformed values render empty in the native input. Native required feedback appears after validation; helpers/errors compose with external aria-describedby. Native Alt+ArrowDown opens the calendar, composing caller onKeyDown and honoring preventDefault/composition. Trigger Enter/Space opens a modal Radix popover, focused at the selected/current bounded day. Calendar Arrows, row Home/End, PageUp/Down and Shift+PageUp/Down navigate civil days/months/years; month lengths clamp and range bounds hold. Unavailable days remain inspectable with aria-disabled and make no selection. Native month select/year draft controls browse directly; valid year commits on Enter/blur, bounded month choices and previous/next skip outside-range months. Calendar grid has one day Tab stop, named days/weekday columns, selected/current semantics, focus trap, Escape/outside dismissal and focus return. Selection/Clear returns native input focus; Escape returns the opening control. Optional todayISO (today prop; defaults local calendar day), weekStartsOn0..6(default1), locale with Gregorian UTC formatting/fallbacken-US, showToday/clearable(defaulttrue), labels (including yearRange(minimum,maximum) for a localized year alert), theme/dir, rootClassName and native input className/props. Portal automatically reads surrounding scope theme/direction on open unless explicit. Native step is fixed to one day. Persistent selected-day geometry, rolling day/year parts, bounded popup placement and finite entry/exit/paper motion honor reduced motion; selection closes after360ms so the mark can settle, immediately under reduced motion. A constrained-height popup keeps month/year controls, footer and instructions visible while only its day grid scrolls. Keyboard focus scrolls the active day into view. At360px and below, a nearly full-width popup fits all seven44px day targets without horizontal grid scrolling. The popup follows the visual viewport, including keyboard resize, and its calendar grid scrolls vertically while controls/footer remain visible. Exports date-only parsing/formatting/day-month shifting helpers and decorative TidalDateDigits requiring separate accessible text. No form wrapper, scheduling, availability service, timezone choice, network work or storage is introduced. Consumers validate real availability and handle requests.
