Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA frosted calendar popover for picking date ranges: presets such as last 7 days or this month, two months side by side that slide in the direction you navigate, a soft range band with a dashed hover preview before the second click, today markers and a live summary of days and nights. It is fully keyboard driven (arrows, Page Up and Down, Home, End, Enter, Escape) with grid roles and spoken selections, formats everything through Intl for any locale (en-US, pt-BR and more, including the first day of the week), and supports min and max dates, controlled or uncontrolled values and popover, inline or compact single-month variants.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { DateRangePickerDemo } from "@/components/hyperblur-pro/date-range-picker"
const [range, setRange] = useState({ start: null, end: null });
<DateRangePicker value={range} onChange={setRange} locale="pt-BR" />
<DateRangePicker variant="inline" presets={false} minDate={new Date()} />
<DateRangePickerDemo />| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "popover" | "inline" | "single" | "popover" | DateRangePicker: trigger with floating panel, always-open panel, or compact single month. |
| value / defaultValue | { start: Date | null; end: Date | null } | empty | DateRangePicker: controlled or uncontrolled range. |
| onChange | (range: DateRange) => void | undefined | DateRangePicker: called on Apply (popover) or when a range completes (inline and single). |
| locale | string | "en-US" | Any BCP 47 locale for month, weekday and range formatting. pt-BR also translates the interface text. |
| presets | boolean | true | DateRangePicker: show the presets column. |
| minDate / maxDate | Date | undefined | DateRangePicker: earliest and latest selectable days. |
| weekStartsOn | number | from locale | DateRangePicker: 0 for Sunday, 1 for Monday. |
| accent | string | "#3b6cff" | Selection and focus color. |
| appearance | "light" | "dark" | "light" | DateRangePicker: panel colors. |
| image | string | "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=2000&q=80" | DateRangePickerDemo: background photo behind the booking bar. |
Source code is included in Pro and above