About
An inline month calendar for picking a single date or a date range directly on the page, with today marked and unavailable days struck through.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Date Calendar to your project and fits it to your theme.
Code
How Date Calendar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { DateCalendar } from "@/components/ui/date-calendar";
import { useState } from "react";
import { getLocalTimeZone, today } from "@internationalized/date";
export default function DateCalendarDemo() {
const [date, setDate] = useState(today(getLocalTimeZone()).add({ days: 2 }));
return (
<DateCalendar
aria-label="Delivery date"
value={date}
onChange={setDate}
minValue={today(getLocalTimeZone())}
/>
);
}







