DatePicker

Input for selecting a single calendar date, with support for segmented input and calendar popover.

calendarPopoverAlign

centerendstart
Default: start

disabled

booleanDefault: false

maxDate

Date

minDate

Date

value

Date

Also supports MarginProps: `m`, `mb`, `ml`, `mr`, `mt`, `mx`, `my`

This DatePicker uses a segmented input (YYYY-MM-DD) for keyboard entry and opens a calendar popover for selection via the calendar icon button. When a date is selected or typed completely, onChange is called with a valid Date object.

The component can be disabled to prevent both typing and calendar interactions.

Use minDate and maxDate to restrict valid input and calendar selection to a specific date range.

Exposes an imperative API to focus specific segments of the input:

Dashboard

2 variants found

DatePicker in Date Range Filterdashboard
DatePicker in Date Range Filterdashboard

Context

PropTypeDefaultRequired
calendarPopoverAlign
"center" | "end" | "start"startno
disabled
booleanfalseno
maxDate
Dateno
minDate
Dateno
value
Dateno

Also supports MarginProps: m, mb, ml, mr, mt, mx, my

Usage

Used 2 times across 1 package

Dashboard
2

Where it's used

1 file

packages/dashboard/src/components/filters/date-range-filter.tsx2