Home Components Date Picker
React Date Picker Components
13 free React date pickers built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for single dates, date ranges, and presets.
DatePicker 1 : Single date picker with a rounded trigger and a popover calendar that closes once a day is picked.DatePicker 2 : Date range picker that shows the start and end dates in the trigger and highlights the days between.DatePicker 3 : Single date picker with a calendar icon shown inside the trigger next to the chosen date.DatePicker 4 : Typed date input with a calendar button, where pressing the down arrow key also opens the calendar.DatePicker 5 : Natural language date input that understands phrases like In 2 days and shows the scheduled date below.DatePicker 6 : Range picker preset to a five-day span, shown in the trigger as a short formatted date range.DatePicker 7 : Single date picker whose calendar hides the trailing days from the previous and next months.DatePicker 8 : Time input with hours, minutes and seconds in a rounded field.DatePicker 9 : Time input with a clock icon placed at the start of the field.DatePicker 10 : Date picker button and a separate time input placed side by side.DatePicker 11 : Date picker above a pair of From and To time inputs for choosing a time window.DatePicker 12 : Start and end date pickers, each with a time input, where end dates before the start are disabled.DatePicker 13 : Sales bar chart card with a date range picker that filters the January daily data shown.
About React Date Picker Components A React date picker is a field that opens a calendar so users can choose a date or a date range. Most Watermelon UI date pickers put a react-day-picker calendar inside a Radix UI Popover, styled with Tailwind CSS, with single-date and date range variants. Add one with the shadcn CLI, then store the selected date in state or your form library.
When to use it Forms that ask for a single date, like a due date or a birthday. Report filters that need a start and end date. Booking flows where only some days are available. When to use something else Use Calendar when the calendar should always be visible on the page. Use Input Mask when users know the exact date and should type it in a fixed format. Use Select when users choose from a few named periods like Last 7 days. Frequently asked questions How do I make a shadcn date range picker? Set mode="range" on the Calendar inside the popover and store a { from, to } object in state. Format both dates in the trigger button so users can see the range.
How do I close the date picker after selecting a date? Control the Popover with open and onOpenChange, then set open to false in the calendar’s onSelect. For ranges, close only once both dates are set.
How do I format the selected date? Format the Date object yourself in the trigger, for example with date-fns format or toLocaleDateString. The calendar stores a Date, not a string.
How do I use the date picker with react-hook-form? Render it inside a Controller and pass field.value to selected and field.onChange to onSelect. Validate the field with a zod date schema.
How to use React Date Picker Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/date-picker-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: lucide-react, react-day-picker, chrono-node, little-date, recharts.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .