# Session Booking block

> Session booking scheduler with single-date calendar, duration toggle, and scrollable time slots

Appointment booking widget for meetings and consultations. Single-date Calendar with month and year dropdowns, 15m to 90m duration toggle, scrollable time-slot picker, confirm footer. ReUI Frame, shadcn Calendar, Select, ScrollArea, Button.

- Type: Pro block
- Category: [Schedule](https://web.dev.reui.io/blocks/application/schedule.md)
- Page: https://web.dev.reui.io/blocks/application/schedule/schedule-9
- MCP: `get_block("schedule-9")`
- Built with: Button, Calendar, Frame, Item, Scroll Area, Select
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A session picker whose 15 to 90 minute toggle rebuilds the 9 am to 5 pm slot list at that step, with a booked summary

## Agent notes

- `buildSlots` returns every slot with `available` set to true; load real availability per day or no slot is ever disabled
- `handleBook` only sets `confirmed`; send `selectedDate`, `selectedTime` and `duration` to your booking API from there
- Slots always span 9 am to 5 pm inside `buildSlots`; change those bounds for your own working hours

## When not to use

- The slot belongs to a due date picked from shortcut rows like Tomorrow: use [Due Date Picker](https://web.dev.reui.io/blocks/application/schedule/schedule-10.md) (`get_block("schedule-10")`)
- The meeting also needs a repeat rule, a title and notes: use [Meeting Scheduler](https://web.dev.reui.io/blocks/application/schedule/schedule-3.md) (`get_block("schedule-3")`)

## Third-party libraries

- React DayPicker v9: [API reference](https://daypicker.dev/v9/api), [docs](https://daypicker.dev/v9/start), through shadcn Calendar

## Install

```bash
npx shadcn@latest add @reui/schedule-9
```

## About Schedule blocks

### When to use

- Booking a session or setting up a meeting: a day, a time slot, a duration and a confirm step
- A month view card with the picked day's events and attendees, or a team's attendance counts
- Creating a scheduled event with members and files, or an event's detail card with an RSVP

### When not to use

- A full page week or month grid where people drag, resize and create events: use the [Event Calendar blocks](https://web.dev.reui.io/blocks/application/event-calendar.md)
- A plain day or range field in a form, with no slots, agenda or booking card: use [Calendar](https://web.dev.reui.io/components/calendar.md) (`get_component("calendar")`)
- A drop zone for attachments on its own, with no booking or meeting fields: use [File Upload](https://web.dev.reui.io/components/file-upload.md) (`get_component("file-upload")`)

### Agent notes

- `Schedule` takes no props and saves or sends nothing; add a callback to hand the picked day, time or form values to your app
- Each `Schedule` caps its width with a max-w class on its root `Frame`, and page.tsx centers it with p-10 md:p-20; drop both inside your layout

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
