Date picker
A button that opens a calendar in a popover to pick a date.
A button that opens a calendar in a popover to pick a date.
It uses Button, Calendar and Popover, which the command adds for you.
npx shadcn@latest add popover calendar button
npm install date-fns lucide-react
First time with shadcn/ui? Set it up once.
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
A date picker is built from Popover, Calendar and Button; add those three first.