Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Date range picker

A two-month stay picker with quick presets, a live hover preview of the range, sold-out nights a range can't cross, a nights-and-total summary, and full keyboard control.

Category
Forms
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Empty state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/date-range-picker.json

2. Use it

Every prop is optional
app/page.tsx
import DateRangePicker from "@/components/date-range-picker";

export default function Page() {
  return <DateRangePicker />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 46rem white card (26px radius) on warm #f3f1ec: Check-in and Check-out fields across the top (the one being chosen labelled in orange), then quick-pick pills (Weekend, 1 week, 2 weeks).
  2. Two month grids side by side (one on phones) with round 44px days; check-in and check-out are black circles joined by a peach band, and before the second click a dashed circle and lighter band preview the range under the cursor.
  3. Sold-out nights are struck through and disabled, and a range that would cross one restarts from the clicked date.
  4. A footer shows nights, the total with fees, Clear and an orange Save dates button that is disabled until a range is chosen.

How it behaves

  • Clicking a check-in and then a later date selects the range and the summary shows the right number of nights.
  • Arrow keys move one day or one week, Page Up/Down move a month, Home/End jump within the week, and Enter picks the focused day.
  • Only the focused day is in the tab order; each day's label includes the full date and whether it is sold out.
  • A range across a sold-out night is never selected.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component