FORMS / COMPONENT 18

Date picker

React component

Select a date or range in a keyboard-navigable calendar.

Try it out

Use the live controls or open the Code tab to view and copy the example.

November 2026
2026-11-10 to 2026-11-14
11/10/2026 – 11/14/2026

API reference

Generated from the package’s TypeScript exports. Standard React event and ARIA attributes are also accepted where the component wraps a native element.

PropTypeDescription
labelstring | undefinedA meaningful visible or accessible label.
monthDate | undefinedSee the typed definition and working example for this option.
defaultMonthDate | undefinedSee the typed definition and working example for this option.
onMonthChange((month: Date) => void) | undefinedSee the typed definition and working example for this option.
disabledMatcher | Matcher[] | undefinedDisables interaction (or date matchers for DatePicker).
numberOfMonths1 | 2 | undefinedSee the typed definition and working example for this option.
namestring | undefinedField name used in form submission.
localePartial<DayPickerLocale> | undefinedSee the typed definition and working example for this option.
startMonthDate | undefinedSee the typed definition and working example for this option.
endMonthDate | undefinedSee the typed definition and working example for this option.
mode"range" | "single" | undefinedSee the typed definition and working example for this option.
valueDate | DateRange | undefinedControlled value. Pair with its change callback.
defaultValueDate | DateRange | undefinedInitial value for uncontrolled usage.
onValueChange((value: Date | undefined) => void) | ((value: DateRange | undefined) => void) | undefinedCalled with the next value. Update controlled state here.

Accessibility & interaction

React DayPicker supports single/range selection, one/two months, localized labels, month navigation and disabled matchers. Values are Date objects.

Visible focus, reduced motion, and both color themes are shared across staqui. Choose labels and document structure that make sense in your application; automated checks do not replace assistive-technology testing.

Variants & implementation notes

React DayPicker supports single/range selection, one/two months, localized labels, month navigation and disabled matchers. Values are Date objects.

Use the typed API above for the supported variants. The example demonstrates the primary composition; shared controls inherit hover, focus, active and disabled treatment where applicable.

Compose with