Date Picker
Calendar inside a Popover, triggered by a Button. Composable and accessible.
Installation
1
Run the CLI
$npx particleui-cli add date-picker
Usage
TSX
import { DatePicker } from "@/components/ui/date-picker"
export default function Example() {
return <DatePicker />
}Props
| Prop | Type | Default | Required |
|---|---|---|---|
| date | Date | — | no |
| onDateChange | (date: Date | undefined) => void | — | no |
| placeholder | string | "Pick a date" | no |
| className | string | — | no |
| disabled | boolean | — | no |
Details
Source filecomponents/ui/date-picker.tsx
Typeui
Categoriesforms, core
npm dependenciesdate-fns, lucide-react
Registry deps
Claude skill—