Skip to content
caliper ui pro docs

Date input

A date field you type into, with the reading shown live and a month that carries data marks.

Pro

Try “next fri”, “14 oct” or “in 2 weeks”.

Payout lands by 17:00 on 2026-10-16.

When to use

  • Scheduling where typing “next fri” beats clicking through months.
  • Dates where some days carry data (invoices due) or are unavailable for a reason.

When not to use

  • People mostly browse a month; use the date picker or calendar.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/date-input

Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

DateInput

11 props
PropTypeDefaultDescription
label *string—
valuestring | null—
defaultValuestring | nullnull
onValueChange((value: string | null) => void)—
disabledDates((iso: string) => boolean)—
disabledReason((iso: string) => string | undefined)—
marks((iso: string) => string | undefined)—
hintstring"Try “next fri”, “14 oct” or “in 2 weeks”."
namestring—
classNamestring—
todayDate—The date relative words are read against; defaults to now.

parseNaturalDate

0 props

No props of its own; it accepts the native props of its root element.

Keyboard

Enter
Activates the focused control.

Accessibility

It is built on native elements and keeps aria-invalid, aria-describedby, aria-label, aria-hidden and aria-live in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/date-input.md

The index of every part is at /llms.txt.

More in Dates