Out of Office Check

Out of Office Check is a copy-paste React component that stops auto-reply runs on the day i'm back 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/out-of-office-check
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

StopsAuto-reply runs on the day I'm back

Was this component page useful?

How do I install Out of Office Check?

pnpm dlx shadcn@latest add @bollard/out-of-office-check

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

How do I use Out of Office Check in React?

out-of-office-check-usage.tsx
import { OutOfOfficeCheck, type AutoReply } from "@/components/ui/out-of-office-check"

<OutOfOfficeCheck
  value={reply}
  onValueChange={setReply}
  platform="gmail"
  timeZone="Asia/Kolkata"
  now={NOW}
  organization="Acme"
  fallbackContact="support@acme.com"
  onSave={() => new Promise<void>((resolve) => setTimeout(resolve, 600))}
/>

What input mistakes does Out of Office Check catch?

  • Replies still going out all day on the day you're back (Gmail ends at 11:59 PM)
  • Auto-reply stopping before the return date in the message
  • No end date, or a date left from last time
  • Outside replies giving a phone number, a colleague's direct address, your location or a health reason
  • Answering every outside sender

What props does Out of Office Check accept?

OutOfOfficeCheck props
PropTypeDefault
value

Controlled auto-reply settings.

AutoReply—
defaultValue

Initial auto-reply settings when uncontrolled.

AutoReply—
onValueChange

Called with the settings on every change.

(reply: AutoReply) => void—
platform

Gmail: dates, one reply. Outlook: dates and times, an inside and an outside reply.

AutoReplyPlatform"gmail"
timeZone

The mail account's time zone. Every date and time is read in it.

string"UTC"
now

Pass for deterministic rendering; otherwise the clock is read after mount.

Date—
organization

Your organisation, used in labels ("Only people at Acme").

string"your organisation"
fallbackContact

A team inbox for the short outside reply, e.g. "support@acme.com".

string—
dateOrder

How to read 27/10 in the reply text.

"dmy" | "mdy""dmy"
locale

BCP 47 locale for dates.

string"en-IN"
onSave

Saves the auto-reply. Return a promise for a pending state; a rejection keeps the form as it is.

(reply: AutoReply) => void | Promise<void>—
messages

Override any visible string.

Partial<OutOfOfficeCheckMessages>—

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

How is Out of Office Check accessible?

  • Date and time inputs have labels and get aria-invalid when a finding applies
  • Audience options are labelled
  • Focus moves to the first fix or Save after a change

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

What are the limitations and server boundaries?

  • Return dates are read from the message text and may be missed in unusual wording
  • Platform behaviour (Gmail, Outlook) is modelled as documented by the authors and can change
  • Doesn't save to your mail provider; onSave does

What expensive mistakes does Out of Office Check stop?

Auto-reply runs on the day I'm back

Also known as

out of office · ooo · auto reply · vacation responder · gmail · outlook · leave · away message

Field type

What dependencies does Out of Office Check require?

Out of Office Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameOut of Office Check
Registry identifier@bollard/out-of-office-check
Install commandnpx shadcn@latest add @bollard/out-of-office-check
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 Out of Office Check

How does Out of Office Check handle date and time accuracy?

Out of Office Check catches auto-reply runs on the day I'm back. Validates calendar constraints: Replies still going out all day on the day you're back (Gmail ends at 11:59 PM), Auto-reply stopping before the return date in the message, No end date, or a date left from last time, Outside replies giving a phone number, a colleague's direct address, your location or a health reason, Answering every outside sender. Limitation: match out-of-office-check with server timezone.

How do I install out-of-office-check with shadcn?

Run `npx shadcn@latest add @bollard/out-of-office-check`. Sources added: registry/default/out-of-office-check/ooo.ts, registry/default/out-of-office-check/out-of-office-check.tsx. Package requirements: lucide-react.

What props customize Out of Office Check?

Out of Office Check accepts `value`, `defaultValue`, `onValueChange`, `platform`, `timeZone`. Configures out of office, ooo, auto reply behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of out-of-office-check?

Return dates are read from the message text and may be missed in unusual wording. Platform behaviour (Gmail, Outlook) is modelled as documented by the authors and can change. Doesn't save to your mail provider; onSave does Server requirement: backend verification for out-of-office-check.

How does Out of Office Check meet accessibility guidelines?

Date and time inputs have labels and get aria-invalid when a finding applies. Audience options are labelled. Focus moves to the first fix or Save after a change. Minimizes errors: out of office wrong dates, vacation responder never ends.

Which components pair with Out of Office Check?