Search
Search components and blocks
Date Picker
ProA shadcn Popover and Button wrapping the animated calendar. Picking a day closes the popover.
Props
PropTypeDefault
todayDate—valueDateundefineddefaultValueDateundefinedonValueChange(date: Date) => void—placeholderstringPick a dateclassNamestring—openboolean—defaultOpenbooleanfalseonOpenChange(open: boolean) => void—When to use the date picker
Use the date picker for choosing a day from a popover. It wraps the animated calendar in a shadcn Popover and Button.
Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.