Event Overlap

Event Overlap is a copy-paste React component that stops meeting booked on top of another before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/event-overlap
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsMeeting booked on top of another

Was this component page useful?

How do I install Event Overlap?

pnpm dlx shadcn@latest add @bollard/event-overlap

The files land in your project. They're yours to edit.

How do I use Event Overlap in React?

event-overlap-usage.tsx
import { EventOverlap, type CalendarEvent } from "@/components/ui/event-overlap"

<EventOverlap
  draft={draft}
  events={events}
  timeZone="Asia/Kolkata"
  travelMinutes={travel}
  now={NOW}
  onMove={(start, end) => setDraft((d) => ({ ...d, start: start.getTime(), end: end.getTime() }))}
/>

What input mistakes does Event Overlap catch?

  • Overlapping events and busy all-day events
  • Back-to-back events with no break
  • Too little travel time between places
  • Events in other time zones, shown in their own local time
  • The nearest free slot within work hours, with Undo

What props does Event Overlap accept?

EventOverlap props
PropTypeDefault
draft* (required)

The event being created or moved.

DraftEvent—
events* (required)

Events already on the calendar.

CalendarEvent[]—
workHours

Working hours [start, end) in your zone, for the suggested slot.

[number, number][9, 18]
step

Granularity of suggested starts, in minutes.

number15
now

"Now", so no slot in the past is offered. Pass it for deterministic previews.

Date | number—
onMove

Move the draft. Called with the suggested slot, and with the old times on Undo.

(start: Date, end: Date) => void—
reasons

Reason templates per kind: `{minutes}`, `{needed}`, `{gap}` and `{route}` are filled in.

Partial<Record<ConflictKind, string>>—
conflictText

Templates: `{count}` and `{time}` are filled in.

string"Clashes with {count}"
clearText

Shown when there are no clashes.

string"No clashes. Your buffer and travel time are kept."
moveLabel

Text for the move-to-free-slot button.

string"Move to {time}"
undoLabel

Text for the Undo button.

string"Undo"
noSlotText

Shown when no free slot is found.

string"No free slot of this length in the next week."
localTimeText

Text giving another zone's local time.

string"{time} {zone} where it happens"
locale

Locale for times and dates.

string"en-GB"
hour12

12-hour clock (2:30 PM). Set false for 14:30.

booleantrue
labels

Override any other string.

Partial<typeof EVENT_OVERLAP_LABELS>—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Event Overlap accessible?

  • The timeline is aria-hidden; clashes are listed in text
  • Results are aria-live="polite"
  • Move and Undo are buttons with visible text

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Only knows the events you pass; other calendars are unseen
  • Travel times come from your data

What expensive mistakes does Event Overlap stop?

Meeting booked on top of another

Also known as

calendar · double booking · conflict · meeting scheduler · calendly · buffer time · travel time · time zone

Field type

What dependencies does Event Overlap require?

Event Overlap facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameEvent Overlap
Registry identifier@bollard/event-overlap
Install commandnpx shadcn@latest add @bollard/event-overlap
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Event Overlap

How does Event Overlap handle date and time accuracy?

Event Overlap catches meeting booked on top of another. Validates calendar constraints: Overlapping events and busy all-day events, Back-to-back events with no break, Too little travel time between places, Events in other time zones, shown in their own local time, The nearest free slot within work hours, with Undo. Limitation: match event-overlap with server timezone.

How do I install event-overlap with shadcn?

Run `npx shadcn@latest add @bollard/event-overlap`. Sources added: registry/default/event-overlap/event-overlap.tsx, registry/default/event-overlap/overlap.ts. Package requirements: lucide-react.

What props customize Event Overlap?

Event Overlap accepts `draft`, `events`, `workHours`, `step`, `now`. Configures calendar, double booking, conflict behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of event-overlap?

Only knows the events you pass; other calendars are unseen. Travel times come from your data Server requirement: backend verification for event-overlap.

How does Event Overlap meet accessibility guidelines?

The timeline is aria-hidden; clashes are listed in text. Results are aria-live="polite". Move and Undo are buttons with visible text. Minimizes errors: double booked meeting, calendar conflict.

Which components pair with Event Overlap?