Send Time Check

Send Time Check is a copy-paste React component that stops message landed at 2 am their time 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/send-time-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 4 extra npm packages
  • A11y guidance in docs

StopsMessage landed at 2 AM their time

Was this component page useful?

How do I install Send Time Check?

pnpm dlx shadcn@latest add @bollard/send-time-check

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

What input mistakes does Send Time Check catch?

  • Night hours in the recipient's zone (default 22:00–07:00)
  • Outside working hours (default 9–18)
  • Their weekend, by zone (Friday–Saturday in Riyadh, Saturday in Kathmandu, otherwise Saturday–Sunday)
  • Holidays you supply
  • Next working-day start, DST-safe, as a one-tap schedule

What props does Send Time Check accept?

SendTimeCheck props
PropTypeDefault
workHours

Working hours in the recipient's zone, [start, end) in 24h hours.

[number, number]—
nightHours

Hours counted as night, [from, until), e.g. [22, 7].

[number, number]—
weekendnumber[]—
holidaysHoliday[]—
recipient* (required)

Recipient's name, e.g. "Priya".

string—
timeZone* (required)

Recipient's IANA zone, e.g. "Europe/London".

string—
place

Where they are. Defaults to the zone's city.

stringtimeZone.split("/").pop()?.replace(/_/g, " ")
now

Fixed "now" for previews and tests. Defaults to a live clock.

Date | number—
senderTimeZone

Your zone, used to show the suggestion in your time too. Defaults to the browser's.

string—
onSchedule

Called with the suggested instant when the user picks "Schedule for …".

(at: Date) => void—
children

The Send / Schedule buttons this check sits next to.

React.ReactNode—
okText

Templates: `{name}`, `{place}`, `{time}`, `{day}` and `{holiday}` are filled in.

string"It's {time} for {name} in {place}."
nightText

Shown when it's night where the recipient is.

string"It's {time} for {name} in {place}."
afterHoursText

Shown outside their working hours.

string"It's {time} for {name} in {place}, after their working h…
weekendText

Shown on their weekend.

string"It's {day} {time} for {name} in {place}, their weekend."
holidayText

Shown on a holiday you passed.

string"It's {holiday} for {name} in {place}."
scheduleLabel

Template for the fix button: `{when}`.

string"Schedule for {when}"
yourTimeText

Template for your-time hint: `{time}`.

string"{time} your time"
showDay

Show the recipient's day as a 24-hour strip with their working hours and where the message would land.

booleantrue

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

How is Send Time Check accessible?

  • Status message in a polite live region; the day strip is aria-hidden
  • Marker glide respects reduced motion (useReducedMotion)
  • Schedule is a labelled button; icons are aria-hidden

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

What are the limitations and server boundaries?

  • Weekend table is built in and coarse (by IANA zone, not by person or employer)
  • Holidays are not built in; pass them
  • Needs the recipient's real time zone; guessing it from a country can be wrong

What validation rules apply to Send Time Check?

Rules not yet verified against an official source.

Weekend-by-zone table (Fri–Sat in much of the Gulf, Sat-only in Nepal, Fri–Sun in Brunei) not re-verified against official sources this round. Check local rules before relying on it. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Send Time Check stop?

Message landed at 2 AM their time

Also known as

schedule send · time zone · local time · working hours · slack · email · weekend · send later

Field type

What dependencies does Send Time Check require?

Send Time Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameSend Time Check
Registry identifier@bollard/send-time-check
Install commandnpx shadcn@latest add @bollard/send-time-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, @date-fns/tz, date-fns, motion
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 Send Time Check

How does Send Time Check handle date and time accuracy?

Send Time Check catches message landed at 2 AM their time. Validates calendar constraints: Night hours in the recipient's zone (default 22:00–07:00), Outside working hours (default 9–18), Their weekend, by zone (Friday–Saturday in Riyadh, Saturday in Kathmandu, otherwise Saturday–Sunday), Holidays you supply, Next working-day start, DST-safe, as a one-tap schedule. Limitation: match send-time-check with server timezone.

How do I install send-time-check with shadcn?

Run `npx shadcn@latest add @bollard/send-time-check`. Sources added: registry/default/send-time-check/send-time-check.tsx. Package requirements: lucide-react, @date-fns/tz, date-fns, motion.

What props customize Send Time Check?

Send Time Check accepts `workHours`, `nightHours`, `weekend`, `holidays`, `recipient`. Configures schedule send, time zone, local time behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of send-time-check?

Weekend table is built in and coarse (by IANA zone, not by person or employer). Holidays are not built in; pass them. Needs the recipient's real time zone; guessing it from a country can be wrong Server requirement: backend verification for send-time-check.

How does Send Time Check meet accessibility guidelines?

Status message in a polite live region; the day strip is aria-hidden. Marker glide respects reduced motion (useReducedMotion). Schedule is a labelled button; icons are aria-hidden. Minimizes errors: messaged client at night, sent on their weekend.

Which components pair with Send Time Check?