About
A dropdown date-range picker that lets a user pick a start and end calendar month, with quick presets like Last 3 Months and Year to Date, for filtering reports by period.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Month Range Picker to your project and fits it to your theme.
Code
How Month Range Picker is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import MonthRangePicker from "@/components/ui/month-range-picker";
import { useState } from "react";
export default function MonthRangePickerDemo() {
const [range, setRange] = useState<{
startDate: Date | null;
endDate: Date | null;
}>({
startDate: new Date("2026-03-01"),
endDate: new Date("2026-08-31"),
});
return (
<div className="flex min-h-[20rem] w-full items-start justify-center bg-background p-10 text-foreground">
<MonthRangePicker initialRange={range} onDateRangeChange={setRange} />
</div>
);
}








