About
A compact month and year selector that shows a 3x4 grid of months with year navigation arrows, for picking a specific month/year without a full calendar.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Month Picker to your project and fits it to your theme.
Code
How Month Picker is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import { Label } from "@/components/ui/label";
import MonthPicker from "@/components/ui/month-picker";
export default function MonthPickerDemo() {
const [value, setValue] = React.useState<Date | undefined>(new Date());
return (
<div className="flex flex-col gap-2">
<Label className="block">
Selected:{" "}
{value
? `${value.toLocaleString("default", { month: "long" })} ${value.getFullYear()}`
: "None"}
</Label>
<MonthPicker value={value} onChange={setValue} />
</div>
);
}
















![Form [react-aria-components]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_jolbol1/field/814/preview.png)