boardui

Date Calendar

Component

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())}
    />
  );
}

Dependencies

More by boardui

View all
  • Social Button

    Social Button

    3
  • Modal Dialog

    Modal Dialog

    1
  • Segmented Control

    Segmented Control

  • Select

    Select

  • Composer Loader

    Composer Loader

  • Slider

    Slider

  • File Upload

    File Upload

  • Context Menu

    Context Menu