vijayksingh

Availability Picker

Component

About

A booking widget showing a host, call length options, a six-week calendar, and the chosen day's free times by time zone, ending in a Confirm-to-Booked flow.

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

Code

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

Usage.tsx

import { AvailabilityPicker } from "@/components/ui/availability-picker";

export default function AvailabilityPickerDemo() {
  return (
    <div className="w-full p-6">
      <AvailabilityPicker
        host={{
          name: "Ana Rocha",
          role: "Design engineer",
          zone: "Europe/Lisbon",
          about: "A first look at what you are building.",
        }}
        onBook={async ({ start, end, zone }) => {
          await fetch("/api/bookings", {
            method: "POST",
            body: JSON.stringify({ start, end, zone }),
          });
        }}
      />
    </div>
  );
}

Dependencies

More by vijayksingh

View all
  • Weather Widget

    Weather Widget

    73
  • Meter

    Meter

    10
  • Skeleton Loader

    Skeleton Loader

    8
  • Textarea

    Textarea

    2
  • Well

    Well

    1
  • Soft Hardware Spinner

    Soft Hardware Spinner

    1
  • Settings List

    Settings List

  • Perfect Preview

    Perfect Preview