INTEGRATIONS / SCHEDULING

A time, with its context.

Display supplied availability and book a time without guessing how a local clock maps to an instant.

Choose a starting point.

DayAgenda displays available starts and booked appointments for one date and time zone. SchedulePlanner adds date, duration and time-zone controls, appointment details and a recoverable booking form.

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/day-agenda.json
npx shadcn@latest add https://ui.bld8.dev/r/schedule-planner.json

Next.js and Vite starters use the same React source. No account or BLD8 npm publication is required.

Supply instants, not ambiguous clock times.

React / TypeScript
const snapshot = {
  revision: 1,
  slots: [{id:"morning",
    start:"2026-11-01T22:00:00.000Z",
    end:"2026-11-02T01:00:00.000Z"}],
  events: []
};

<DayAgenda label="Appointments" day="2026-11-02"
  timeZone="Australia/Melbourne" snapshot={snapshot}
  durationMinutes={30} onSelectStart={openBooking}/>

Availability windows and events use whole-minute UTC ISO instants. Seconds must be zero; both :00Z and :00.000Z are accepted and normalized. Dates remain YYYY-MM-DD values in the selected zone. Windows and events are separately nonoverlapping; adjacent intervals are allowed.

Starts are sampled every 15 elapsed minutes from each supplied window. Durations are 15–120 elapsed minutes in 15-minute steps, and must fit wholly inside availability without overlapping an event. UTC offsets distinguish repeated local times. The Repeated hour example demonstrates the two sides of a daylight-saving change.

The existing TimePicker remains a date-free HH:mm preference. It does not resolve an appointment instant. This workflow does not convert arbitrary local clock input to UTC.

Connect your service.

React / TypeScript
<SchedulePlanner loadSchedule={loadAvailability} onBook={bookAppointment}/>

Keep callbacks stable. loadSchedule receives an AbortSignal and returns a complete bounded snapshot: positive revision, up to 200 availability windows and 500 events. Each interval lasts at most 24 hours. Events include a title and positive revision; existing events can outlive the currently offered availability.

onBook receives the window ID, requested UTC start/end, title and expected snapshot revision, plus an AbortSignal and request ID. Return {snapshot,eventId} with an advanced snapshot revision and the matching new appointment. The host owns authentication, permissions, idempotency and an atomic revision/overlap check. A client-side check alone cannot prevent concurrent bookings.

Rejected saves keep the draft. Cancelled or replaced requests cannot update the current view. Aborting a request does not guarantee the server rolled back; reload to reconcile. Without callbacks, the example uses illustrative availability and page-session changes.

Keep the boundaries explicit.

The pure helpers are available from @bld8/ui/schedule-state, including Server Components. Registry installations use the equivalent local bld8/schedule-state file. Locale controls formatting; product labels remain English. Time-zone rules come from the runtime’s Intl data.

This is a bounded day agenda for one schedule. Recurrence, calendar synchronization, resource allocation, drag/resizing, production availability generation and rich-text comments remain separate work. Layout responds to its container, including a narrow preview inside a desktop page.