Skip to content

Calendar Date Picker

A date picker for Next.js that handles single dates and date ranges on top of shadcn/ui's calendar.

shadcn-calendar-component.vercel.app

Calendar Date Picker website screenshot
Added
GitHub stars
338
License
MIT
Price
Free

About

About Calendar Date Picker

Calendar Date Picker is a copy-paste component assembled from shadcn/ui parts: button, calendar, popover and select. The demo shows two modes, a date range field and a single date field with a submit button. Under the hood it uses react-day-picker for the grid, date-fns and date-fns-tz for date math and time zone formatting, and class-variance-authority for styling variants.

The README is a step-by-step tutorial for a Next.js project. Install date-fns, date-fns-tz and react-day-picker, initialize the shadcn CLI, add button, calendar, popover and select, then create calendar-date-picker.tsx in your components folder and paste the code. The repository is MIT licensed. It suits forms that need a range filter on reports or a single date for bookings and deadlines.

Calendar Date Picker features

6 features

  • Single date and date range modes
  • Built on the shadcn/ui calendar and popover
  • react-day-picker for the calendar grid
  • Time zone formatting with date-fns-tz
  • Month and year selects
  • Variants via class-variance-authority

Install Calendar Date Picker

1 command

Terminal

$ npx shadcn@latest add button calendar popover select

What you can build with Calendar Date Picker

3 use cases

  • Filtering a report by a start and end date
  • Picking a due date in a task form
  • Choosing a booking date inside a popover

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What Calendar Date Picker is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro