About
Calendar [React Day Picker]
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Calendar [React Day Picker] to your project and fits it to your theme.
Code
How Calendar [React Day Picker] is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { Calendar } from "@/components/ui/calendar";
import { addDays } from "date-fns";
import { useState } from "react";
import { DateRange } from "react-day-picker";
function Component() {
const today = new Date();
const [date, setDate] = useState<DateRange | undefined>({
from: today,
to: addDays(today, 25),
});
return (
<div>
<Calendar
mode="range"
selected={date}
onSelect={setDate}
numberOfMonths={2}
pagedNavigation
showOutsideDays={false}
className="rounded-lg border border-border p-2 bg-background"
classNames={{
months: "gap-8",
month:
"relative first-of-type:before:hidden before:absolute max-sm:before:inset-x-2 max-sm:before:h-px max-sm:before:-top-2 sm:before:inset-y-2 sm:before:w-px before:bg-border sm:before:-left-4",
}}
/>
<p
className="mt-4 text-center text-xs text-muted-foreground"
role="region"
aria-live="polite"
>
Two months calendar -{" "}
<a
className="underline hover:text-foreground"
href="https://daypicker.dev/"
target="_blank"
rel="noopener nofollow"
>
React DayPicker
</a>
</p>
</div>
);
}
export { Component };
![Calendar [React Day Picker] preview](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=1080,quality=75,format=webp/https://cdn.21st.dev/user_originui/calendar/two-months-calendar/preview.png?v=1)





