Skip to content
Haze UI

AI meeting scheduler

In-chat meeting slot picker comparing dual calendar availability strips across three openings, booking confirmation, and note entry.

pnpm dlx shadcn@latest add @haze/ai-schedule
Open preview in a new tab
Livesmall script

When to use

  • Proposing a short list of mutual calendar openings directly inside an AI assistant thread
  • Showing visual busy blocks for both attendees alongside each highlighted mutual free slot
  • Confirming a booking inline while letting the user attach an agenda note or reschedule

When not to use

  • Picking from dozens of dates across an entire month; use date-picker or time-slot-picker
  • Drafting a free-form scheduling email without calendar availability data; use ai-send

Installation

Add the Haze registry to components.json once, then install AI meeting scheduler with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.

pnpm dlx shadcn@latest add @haze/ai-schedule
First time? Registry and theme setup

1. Add to components.json:

{
  "registries": {
    "@haze": "http://localhost:4329/r/{name}.json"
  }
}

2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";

API reference

PropTypeDefaultDescription
idstring"haze-ai-schedule"Unique prefix for radiogroup labels, note form controls, and section IDs.
headingstring"In-chat meeting scheduler"Screen-reader section heading for landmark navigation.
userPromptstring"Find 30 minutes with Priya next week for the roadmap"User prompt asking the assistant to find time.
assistantReplystring"You're both free at these times. Pick one and I'll send the invite."Assistant reply introducing the candidate time slots.
durationLabelstring"30 min"Meeting duration label in the card header.
timezoneLabelstring"Your time · CET"Timezone summary shown on the right of the header.
attendeestring"Priya Nair"Full attendee name shown in the header and on confirmation.
attendeeShortstring"Priya"Short row label for the guest availability strip.
slotsScheduleSlot[]3 candidate weekday slotsCandidate time slots with calendar badges and busy intervals for You and the guest.
classstring–Extra classes on the outer section.

Keyboard interactions

ArrowUpArrowDownArrowLeftArrowRight
Move selection across the three candidate meeting slots
HomeEnd
Jump to the first or last available meeting slot
TabEnter
Book the selected day, toggle Add note, save an agenda note, or Reschedule

Accessibility

  • Candidate time slots form a semantic radiogroup with roving tabindex, aria-checked state, and full arrow-key navigation across options.
  • Decorative availability strips are marked aria-hidden while each radio exposes the exact day and time range, and booking announces confirmation via a polite status region.

Notes for AI

Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.

  • Install and use

    Install the Haze UI block "AI meeting scheduler" with `npx shadcn@latest add @haze/ai-schedule`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import AiSchedule from "@/components/haze/blocks/ai-schedule.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/ai-schedule.md

  • Customize with real content

    Adapt the Haze ai-schedule block for our product. Replace the demo values of these props with our real content: id, heading, userPrompt, assistantReply, durationLabel, timezoneLabel, attendee, attendeeShort, slots, class. Keep the layout, the heading level rules and these accessibility details: Candidate time slots form a semantic radiogroup with roving tabindex, aria-checked state, and full arrow-key navigation across options. Decorative availability strips are marked aria-hidden while each radio exposes the exact day and time range, and booking announces confirmation via a polite status region. Do not add raw color classes; use the Haze tokens.

  • Choose the right block

    Before using ai-schedule, check it fits: use it when proposing a short list of mutual calendar openings directly inside an ai assistant thread; showing visual busy blocks for both attendees alongside each highlighted mutual free slot; confirming a booking inline while letting the user attach an agenda note or reschedule. Avoid it when picking from dozens of dates across an entire month; use date-picker or time-slot-picker; drafting a free-form scheduling email without calendar availability data; use ai-send. Alternatives: @haze/time-slot-picker, @haze/date-picker, @haze/ai-send.

Dependencies

  • npm: @lucide/astro
  • @haze/utils
  • @haze/theme (one-time setup)

Source · Original Haze UI work.

Catalog

↑↓ moveEnter openEsc close

Keyboard shortcuts

CtrlK
Command palette
/
Focus search
←↑→↓
Move between cards
jk
Next / previous card
ci
Copy code / install command (detail page)
[]
Previous / next entry
?
This help
Esc
Close dialog