Date input
A date field you type into, with the reading shown live and a month that carries data marks.
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
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
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.mdThe index of every part is at /llms.txt.