Calendar External Guest Guard

Calendar External Guest Guard is a copy-paste React component that stops internal agenda shared with outside guests 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/calendar-external-guest-guard
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

StopsInternal agenda shared with outside guests

Was this component page useful?

How do I install Calendar External Guest Guard?

pnpm dlx shadcn@latest add @bollard/calendar-external-guest-guard

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

How do I use Calendar External Guest Guard in React?

calendar-external-guest-guard-usage.tsx
import { CalendarExternalGuestGuard, type GuardedEvent } from "@/components/ui/calendar-external-guest-guard"

<CalendarExternalGuestGuard
  value={event}
  onValueChange={setEvent}
  domains={["acme.com"]}
  organization="Acme"
  directory={[{ name: "Priya Sharma", email: "priya@acme.com" }]}
  onSend={(e) => new Promise<void>((resolve) => setTimeout(() => (setSent(`Sent to ${e.guests.length} guests.`), resolve()), 600))}
/>

What input mistakes does Calendar External Guest Guard catch?

  • Guests outside your domains, and personal addresses standing in for a colleague's work address
  • Agenda lines that contain sensitive terms
  • Attachments whose names show, or that anyone with the link can open
  • Guest list, invite-others and modify-event rights given to outside guests
  • Recurring events, where outside guests get every future occurrence

What props does Calendar External Guest Guard accept?

CalendarExternalGuestGuard props
PropTypeDefault
value

Controlled event.

GuardedEvent—
defaultValue

Initial event when uncontrolled.

GuardedEvent—
onValueChange

Called with the event after every fix (and after Undo).

(event: GuardedEvent) => void—
domains* (required)

Your organisation's email domains. Subdomains count as yours.

string[]—
organization

Shown in copy, e.g. "Acme". Defaults to the first domain.

string—
directory

Colleagues, used to spot a personal address standing in for a work one.

DirectoryPerson[][]
sensitiveTerms

Words that mark the agenda or a file name as internal.

string[]DEFAULT_SENSITIVE_TERMS
onSend* (required)

Sends the invite. Return a promise for a pending state; a rejection keeps everything as it was.

(event: GuardedEvent) => void | Promise<void>—
messages

Override any visible string.

Partial<CalendarExternalGuestGuardMessages>—

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

How is Calendar External Guest Guard accessible?

  • Guest remove buttons have aria-labels with the address
  • Send sets aria-busy while sending and is described by the second-press hint
  • Escape disarms the second press and returns focus to Send
  • Failures use role="alert"; status updates role="status"

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

What are the limitations and server boundaries?

  • Models Google Calendar's sharing defaults; other calendar products behave differently
  • File access comes from what you pass (Drive link settings), not a live Drive check
  • Personal-address matching uses the directory you provide

What expensive mistakes does Calendar External Guest Guard stop?

Internal agenda shared with outside guests

Also known as

google calendar · invite · external guest · meeting · agenda · attachments · gmail · guest permissions

Field type

What dependencies does Calendar External Guest Guard require?

Calendar External Guest Guard facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameCalendar External Guest Guard
Registry identifier@bollard/calendar-external-guest-guard
Install commandnpx shadcn@latest add @bollard/calendar-external-guest-guard
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 Calendar External Guest Guard

How does Calendar External Guest Guard handle date and time accuracy?

Calendar External Guest Guard catches internal agenda shared with outside guests. Validates calendar constraints: Guests outside your domains, and personal addresses standing in for a colleague's work address, Agenda lines that contain sensitive terms, Attachments whose names show, or that anyone with the link can open, Guest list, invite-others and modify-event rights given to outside guests, Recurring events, where outside guests get every future occurrence. Limitation: match calendar-external-guest-guard with server timezone.

How do I install calendar-external-guest-guard with shadcn?

Run `npx shadcn@latest add @bollard/calendar-external-guest-guard`. Sources added: registry/default/calendar-external-guest-guard/calendar-external-guest-guard.tsx, registry/default/calendar-external-guest-guard/exposure.ts. Package requirements: lucide-react.

What props customize Calendar External Guest Guard?

Calendar External Guest Guard accepts `value`, `defaultValue`, `onValueChange`, `domains`, `organization`. Configures google calendar, invite, external guest behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of calendar-external-guest-guard?

Models Google Calendar's sharing defaults; other calendar products behave differently. File access comes from what you pass (Drive link settings), not a live Drive check. Personal-address matching uses the directory you provide Server requirement: backend verification for calendar-external-guest-guard.

How does Calendar External Guest Guard meet accessibility guidelines?

Guest remove buttons have aria-labels with the address. Send sets aria-busy while sending and is described by the second-press hint. Escape disarms the second press and returns focus to Send. Failures use role="alert"; status updates role="status". Minimizes errors: invite sent to external guest, internal doc in calendar invite.

Which components pair with Calendar External Guest Guard?