Date Picker
- from @ai2
Date field that opens a Calendar in a Popover. Controlled or uncontrolled via value/defaultValue and onValueChange; formats the selected date with date-fns and shows a placeholder when empty.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @ai2/date-pickerLive preview
No live preview has been built for this component yet.
Registry dependencies4
- @ai2/button
- @ai2/calendar
- @ai2/popover
- @ai2/tokens
