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 { getLocalTimeZone, isWeekend, today } from "@internationalized/date";
import { useLocale } from "react-aria-components";

export default function DateCalendarAvailabilityDemo() {
  const { locale } = useLocale();
  const now = today(getLocalTimeZone());
  return (
    <DateCalendar
      aria-label="Appointment date"
      minValue={now}
      maxValue={now.add({ weeks: 6 })}
      isDateUnavailable={(date) => isWeekend(date, locale)}
    />
  );
}

Dependencies

More by boardui

View all
  • Social Button

    Social Button

    4
  • Modal Dialog

    Modal Dialog

    3
  • Composer Loader

    Composer Loader

    3
  • Select

    Select

    1
  • Accordion

    Accordion

    1
  • Segmented Control

    Segmented Control

  • Slider

    Slider

  • File Upload

    File Upload