nook
Browse the docs

Components

Meeting scheduler

Built on Base UI

Choose a meeting length, day and time, confirm your details, and save an event to your calendar.

See the prompt

Maya Chen · Product design

A fresh perspective

Bring a question about your product. We’ll work through it together.

Meeting length
Time zone
November 2026
SuMoTuWeThFrSa

Tuesday, Nov 17

All times are shown in your selected time zone.

Installation

npx nook-ui@latest add meeting-scheduler

Prompt

Paste this into your AI coding assistant. It adds this exact component, the same way the CLI does, and tells the assistant how to use it.

Short. For assistants that can run commands in your project.

Plain text
Add the Nook "Meeting scheduler" component to this project, exactly as Nook ships it.

Choose a meeting length, day and time, confirm your details, and save an event to your calendar.

Steps
1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`.
2. Run `npx nook-ui@latest add meeting-scheduler`. It writes `components/ui/meeting-scheduler.tsx` together with everything the component needs. Do not write the component from memory.
3. If you cannot run commands, fetch http://localhost:3000/r/meeting-scheduler.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`.
4. Use it where I ask. Start from this example:

```tsx
"use client";

import { MeetingScheduler, type MeetingAvailability } from "@/components/ui/meeting-scheduler";

export const availability: MeetingAvailability[] = [
  { start: "2026-11-17T09:00:00Z", end: "2026-11-17T12:00:00Z" },
  { start: "2026-11-17T10:00:00Z", end: "2026-11-17T10:30:00Z", taken: true, reason: "Already booked" },
  { start: "2026-11-18T13:00:00Z", end: "2026-11-18T16:00:00Z" },
  { start: "2026-11-19T09:00:00Z", end: "2026-11-19T11:00:00Z" },
];
export default function MeetingSchedulerDefault() {
  return <MeetingScheduler title="A fresh perspective" organizer="Maya Chen · Product design" description="Bring a question about your product. We’ll work through it together." availability={availability} defaultTimeZone="UTC" />;
}
```

API
- `MeetingScheduler`: A local booking flow with no backend. The host can also select several times to offer. The confirmation callback is synchronous; persist the booking in your app.
  - `availability` (`MeetingAvailability[]`): ISO start/end intervals with offsets. Mark occupied intervals taken and supply a reason; every overlapping slot is disabled.
  - `title, description, organizer` (`string`): The meeting title, introductory text, and host name.
  - `duration, defaultDuration, onDurationChange` (`number, number, (minutes: number) => void`, default 30): Minutes per slot. Offers 15, 30 and 60 minutes; intervals too short are excluded.
  - `timeZone, defaultTimeZone, onTimeZoneChange` (`string, string, (zone: string) => void`, default UTC): Controlled or initial IANA zone. Changing the zone updates calendar days and times while preserving instants.
  - `timeZones` (`string[]`): Zones offered by the select. The current zone remains an option.
  - `defaultDate` (`Date`): First day to show, otherwise the first available day.
  - `onSchedule` (`({ start, end, name, email, notes }: MeetingBooking) => void`): Receives confirmed ISO instants and attendee details. Success offers an escaped, downloadable ICS data link.
  - `mode` (`"booking" | "organizer"`, default booking): Organizer mode selects several times without collecting attendee details.
  - `offeredSlots, defaultOfferedSlots, onOfferedSlotsChange` (`string[], string[], (starts: string[]) => void`): Controlled or initial offered ISO start times and the change callback.

Rules
- Colors, radii, shadows and motion come from Nook tokens and classes such as `bg-primary`, `text-muted-foreground`, `border-border`, `rounded-lg` and `h-control`. Never hard-code them.
- Do not restyle or simplify the file. Change how it looks through `className`, its props and the theme.
- It must keep working with the keyboard, in light and dark mode, and in the sharp, soft and bold styles.
- Accessibility: Calendar keyboard navigation, disabled unavailable days, occupied times with written reasons, labelled form fields, and focus on each step’s heading. Times use Intl and an explicit IANA time zone.

Done when the component renders like the example in light and dark mode and the project type-checks.

Usage

"use client";

import { MeetingScheduler, type MeetingAvailability } from "@/components/ui/meeting-scheduler";

export const availability: MeetingAvailability[] = [
  { start: "2026-11-17T09:00:00Z", end: "2026-11-17T12:00:00Z" },
  { start: "2026-11-17T10:00:00Z", end: "2026-11-17T10:30:00Z", taken: true, reason: "Already booked" },
  { start: "2026-11-18T13:00:00Z", end: "2026-11-18T16:00:00Z" },
  { start: "2026-11-19T09:00:00Z", end: "2026-11-19T11:00:00Z" },
];
export default function MeetingSchedulerDefault() {
  return <MeetingScheduler title="A fresh perspective" organizer="Maya Chen · Product design" description="Bring a question about your product. We’ll work through it together." availability={availability} defaultTimeZone="UTC" />;
}

Examples

Offer times as a host

Host view

Offer a few times

Choose the times you can make. Share your choices with the team.

Meeting length
Time zone
November 2026
SuMoTuWeThFrSa

Tuesday, Nov 17

Select the times you’d like to offer.

2 times selected to offer.

Props

MeetingScheduler

A local booking flow with no backend. The host can also select several times to offer. The confirmation callback is synchronous; persist the booking in your app.

PropTypeDefaultDescription
availabilityMeetingAvailability[]–ISO start/end intervals with offsets. Mark occupied intervals taken and supply a reason; every overlapping slot is disabled.
title, description, organizerstring–The meeting title, introductory text, and host name.
duration, defaultDuration, onDurationChangenumber, number, (minutes: number) => void30Minutes per slot. Offers 15, 30 and 60 minutes; intervals too short are excluded.
timeZone, defaultTimeZone, onTimeZoneChangestring, string, (zone: string) => voidUTCControlled or initial IANA zone. Changing the zone updates calendar days and times while preserving instants.
timeZonesstring[]–Zones offered by the select. The current zone remains an option.
defaultDateDate–First day to show, otherwise the first available day.
onSchedule({ start, end, name, email, notes }: MeetingBooking) => void–Receives confirmed ISO instants and attendee details. Success offers an escaped, downloadable ICS data link.
mode"booking" | "organizer"bookingOrganizer mode selects several times without collecting attendee details.
offeredSlots, defaultOfferedSlots, onOfferedSlotsChangestring[], string[], (starts: string[]) => void–Controlled or initial offered ISO start times and the change callback.

Accessibility

Calendar keyboard navigation, disabled unavailable days, occupied times with written reasons, labelled form fields, and focus on each step’s heading. Times use Intl and an explicit IANA time zone.

Checked against WCAG 2.1 AA with automated axe tests and keyboard tests on every release.