Constraints
Min & Max Days
Restrict the date range to a minimum or maximum number of days.
import { useState } from "react";import { DateRangeTimePicker } from "react-date-range-picker-tailwind4";
function MinMaxDays() { const [value, setValue] = useState<{ start: Date | null; end: Date | null }>({ start: null, end: null, });
return <DateRangeTimePicker value={value} onChange={setValue} minDays={2} maxDays={14} />;}