Skip to content
A form element used to select a single or a range of dates.
Mon
Tue
Wed
Thu
Fri
Sat
Sun
  • Supports range selection.
  • Pick days, months, years or even decades.
  • Highly customisable.

At Pleo, we almost always use the date picker with the prop showNeighboringMonth. We'll likely make this the default variation soon.

Mon
Tue
Wed
Thu
Fri
Sat
Sun

In some cases, you may want to allow users to select either a single date or a range of dates. This can be achieved by allowing partial range.

<DatePicker
selectRange
allowPartialRange
onChange={() => {
// Will now also be called when the first date is selected
}}
/>
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Sun
48
49
50
51
52
1
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Sun
  • Date input: A means of inputting a date - either in a textfield or using a date picker interface.