Single Date Picker

Calendar popover for selecting a single date. Value is an ISO string (YYYY-MM-DD) — not a Date object. Supports min/max date bounds and specific disabled dates. Available in shell (for search bars) and button (standalone) trigger variants.

core/single-date-picker

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Shell and button variants with disabled date examples.

API Reference

PropTypeDescription
valuereq
string | undefinedISO date string YYYY-MM-DD, or undefined when unset.
onChangereq
(value: string | undefined) => voidCalled when the date changes.
label
stringLabel shown above the summary in shell variant.
placeholder
stringPlaceholder when no date is selected.
minDate
stringEarliest selectable date (ISO). Defaults to today.
maxDate
stringLatest selectable date (ISO).
disabledDates
string[]Specific ISO dates to disable.
variant
"shell" | "button"shell = SearchFieldShell trigger; button = compact bordered button.
disabled
booleanDisables the picker.
invalid
booleanApplies destructive styling.
open
booleanControlled open state.
onOpenChange
(open: boolean) => voidCalled when the popover open state changes.