Skip to content

Date Range Picker

05/05/2026 -
Terminal window
pnpm add react-datepicker date-fns
npx skeci-ui add date-range-picker
import { DateRangePicker } from '@/components/ui/date-range-picker';
import { useState } from 'react';
const [startDate, setStartDate] = useState<Date | null>(new Date());
const [endDate, setEndDate] = useState<Date | null>(null);
const onChange = (dates: [Date | null, Date | null]) => {
const [start, end] = dates;
setStartDate(start);
setEndDate(end);
};
<DateRangePicker
startDate={startDate}
endDate={endDate}
onChange={onChange}
/>

Inline Mode

May 2026

Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
PropTypeDefaultDescription
startDateDate | nullThe start date of the range.
endDateDate | nullThe end date of the range.
onChange(dates: [Date | null, Date | null]) => voidCallback when the range changes.
minDateDateThe minimum date that can be selected.
maxDateDateThe maximum date that can be selected.
disabledbooleanfalseWhether the date range picker is disabled.
placeholderTextstring'Pick a date range'Placeholder text for the input.
border'rough' | 'normal''rough'The border style of the input.
inlinebooleanfalseWhether to render the date range picker inline.