Date Picker
Base UIA calendar on a ruled grid, inline or in a popover.
November 2026
MonTueWedThuFriSatSun
Install
$ npx shadcn@latest add https://spotcheckui.com/r/date-picker.jsonAlso installs @base-ui/react.
Usage
import { Calendar, DatePicker } from "@/components/spotcheck/date-picker"
<DatePicker label="Billing starts" value={date} onValueChange={setDate} />
<Calendar value={date} onValueChange={setDate} />Weeks start on Monday. Pass locale to change the language of the labels.
Props
- label * Required
stringDefault —Names the control for screen readers. - value
Date | nullDefault —The selected date, when you control it. - defaultValue
Date | nullDefault nullThe starting date, when it manages itself. - onValueChange
(date: Date) => voidDefault — - defaultMonth
DateDefault —The month to open on when nothing is selected. - placeholder
stringDefault Pick a date - locale
stringDefault en-GB - className
stringDefault —
Keyboard
| ← → | Move by a day |
|---|---|
| ↑ ↓ | Move by a week |
| Home | Start of the week |
| End | End of the week |
| Page Up | Previous month |
| Page Down | Next month |
| Enter | Choose the date |
Reduced motion
Nothing here animates.