Skip to content

Date Picker

05/05/2026
Terminal window
pnpm add react-datepicker date-fns
npx skeci-ui add datepicker
import { DatePicker } from '@/components/ui/datepicker';
import { useState } from 'react';
const [date, setDate] = useState<Date | null>(new Date());
<DatePicker selected={date} onChange={(date) => setDate(date)} />

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

Disabled State

05/05/2026

Normal Border (Non-Rough)

05/05/2026
PropTypeDefaultDescription
selectedDate | nullThe selected date.
onChange(date: Date | null) => voidCallback when the date changes.
minDateDateThe minimum date that can be selected.
maxDateDateThe maximum date that can be selected.
disabledbooleanfalseWhether the date picker is disabled.
placeholderTextstring'Pick a date'Placeholder text for the input.
border'rough' | 'normal''rough'The border style of the input.
inlinebooleanfalseWhether to render the date picker inline.