Atelier UI

Search components…

Search components…

Date Range Picker

Two-month range calendar popover with hover preview, presets, min/max bounds and full keyboard navigation.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

DateRangePickerProps

Also accepts all props of Omit<React.ComponentProps<"div">, "onChange" | "defaultValue">

PropTypeDefaultDescription
valueDateRange——
defaultValueDateRange——
onValueChange(range: DateRange) => void——
todaystringDEFAULT_TODAYISO date treated as "today" (highlighted and used by presets).
minstring—Earliest selectable ISO date
maxstring—Latest selectable ISO date
presetsbooleantrueShow the quick-range presets
placeholderstring"Pick a date range"—
align"start" | "end""start"Which edge of the trigger the popover aligns to
disabledbooleanfalse—
defaultOpenbooleanfalseOpens on first render without moving focus, handy for static previews

Install

$ npx shadcn@latest add https://chromotion.dev/r/date-range-picker.json

More like this