Date Picker
A calendar popover for selecting a single date.
Install
npx shadcn add @clearly/date-pickerPreview
Live Date Picker component — see usage below.
Usage
import { DatePicker } from "@/components/ui/date-picker"
<DatePicker />Every Clearly component also accepts glass (subtle·medium·strong), specular and className.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | Date | undefined | — | Selected date (controlled). |
onChange | (date?: Date) => void | — | Selection callback. |
placeholder | string | "Pick a date" | Trigger button placeholder text. |