terra vidhal

Booking Calendar

Component

About

An appointment booking card with a keyboard-navigable month grid, animated month and slot transitions, open and fully-booked markers, a legend, booked-slot handling, a selection summary, date and time callbacks, and an animated confirmation panel. Arrows move by day, PageUp and PageDown change month, and slots behave as a radio group.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Booking Calendar to your project and fits it to your theme.

Code

How Booking Calendar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { BookingCalendar } from "@/components/ui/booking-calendar";

export default function BookingCalendarDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-6 py-12">
      <BookingCalendar
        title="Book a strategy call"
        description="Pick a day and a time that works for you. The call is 30 minutes."
        service="Strategy call"
        duration={30}
        defaultYear={2026}
        defaultMonth={11}
        defaultDate="2026-12-09"
        defaultTime="10:30"
        minDate="2026-12-08"
        today="2026-12-08"
        booked={{
          "2026-12-09": ["09:00", "13:00"],
          "2026-12-10": ["10:00", "10:30", "11:00"],
          "2026-12-15": [
            "09:00",
            "09:30",
            "10:00",
            "10:30",
            "11:00",
            "11:30",
            "13:00",
            "13:30",
            "14:00",
            "14:30",
            "15:00",
            "15:30",
          ],
        }}
        timezoneNote="Times shown in your local time."
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Topographic Lines

    Topographic Lines

    6
  • Gravity Stars Background

    Gravity Stars Background

    6
  • Spotlight Card

    Spotlight Card

    4
  • Marquee

    Marquee

    3
  • Glyph Field

    Glyph Field

    2
  • Firework Burst

    Firework Burst

    1
  • Aurora Bubbles

    Aurora Bubbles

    1
  • Kanban Board

    Kanban Board

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.