Cutoff Picker

Cutoff Picker is a copy-paste React component that stops order missed today's delivery cutoff 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/cutoff-picker
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 5 extra npm packages
  • A11y guidance in docs

StopsOrder missed today's delivery cutoff

Was this component page useful?

How do I install Cutoff Picker?

pnpm dlx shadcn@latest add @bollard/cutoff-picker

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

How do I use Cutoff Picker in React?

cutoff-picker-usage.tsx
import { CutoffPicker } from "@/components/ui/cutoff-picker"

<CutoffPicker
  storeTimeZone="Asia/Kolkata"
  userTimeZone="America/Los_Angeles"
  cutoff="12:00"
  holidays={holidays}
  now={START + offset + elapsed}
  value={date}
  onValueChange={setDate}
/>

What input mistakes does Cutoff Picker catch?

  • Store time zone differing from the shopper's (including a different calendar date)
  • Holidays and closed days the delivery date skips
  • A cutoff that passes while the shopper is still choosing
  • Time needed to finish checkout before the cutoff (checkoutMinutes)

What props does Cutoff Picker accept?

CutoffPicker props
PropTypeDefault
storeTimeZone* (required)

IANA zone of the store or warehouse. Cutoffs and dates are the store's.

string—
cutoff

Same-day (or lead-day) cutoff in store time, "HH:MM".

string"14:00"
leadDays

Open days needed after the order day: 0 for same-day, 1 for next-day.

number0
closedWeekdays

Weekdays with no delivery (0 = Sunday).

number[]—
holidays

Store-date holidays with a name to show.

{ date: string; name: string }[]—
days

How many days to offer, starting with the store's today.

number7
value

Selected store date, "YYYY-MM-DD".

string—
defaultValue

Initial date when uncontrolled.

string—
onValueChange

Called with the chosen delivery date.

(date: string) => void—
userTimeZone

Shopper's zone. Defaults to the browser's.

string—
now

"Now" for previews and tests. Defaults to a live clock.

Date | number—
checkoutMinutes

Warn when less than this many minutes are left, since checkout itself takes time.

number5
label

Visible label for the date picker.

string"Delivery date"
countdownText

Templates: `{time}`, `{day}`, `{date}`, `{reason}` and `{yours}` are filled in.

string"Order within {time} for delivery {day}"
cutoffText

Text describing the cutoff time.

string"Cutoff {time} at the store · {yours} for you"
closedText

Text naming skipped holidays and closed days.

string"Today's cutoff has passed. Earliest is {date}{reason}."
hurryText

Text shown when the cutoff is close.

string"Checkout takes a few minutes, so don't wait."
storeDateText

Text shown when the store's date differs from the shopper's.

string"Dates are the store's: it's already {date} there."
rolledText

Text shown when the chosen date is no longer available.

string"{date} closed at {time} while you were choosing."
unavailableText

Text for a date that can't be chosen.

string"{date} isn't available{reason}."
switchLabel

Text for switching to the new earliest date.

string"Switch to {date}"
todayLabel

Word used for today.

string"Today"

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

How is Cutoff Picker accessible?

  • Dates are keyboard-navigable with arrow keys
  • The countdown is a role="img" with an aria-label; the animated digits are aria-hidden
  • Changes are announced in a role="status" region
  • Motion respects prefers-reduced-motion

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

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Re-check the cutoff on the server at order time and reject or reschedule dates that are no longer available.

  • The cutoff, holidays and closed days come from your props
  • Uses the visitor's clock unless you pass `now`; a wrong device clock skews the countdown

What expensive mistakes does Cutoff Picker stop?

Order missed today's delivery cutoff

Also known as

delivery slot · same day delivery · cutoff time · order by · delivery date · blinkit · time slot · store hours

Field type

What dependencies does Cutoff Picker require?

Cutoff Picker facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameCutoff Picker
Registry identifier@bollard/cutoff-picker
Install commandnpx shadcn@latest add @bollard/cutoff-picker
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)
Dependencies@date-fns/tz, @number-flow/react, date-fns, lucide-react, 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 Cutoff Picker

How does Cutoff Picker validate Indian financial identifiers?

Cutoff Picker stops order missed today's delivery cutoff. Complies with national standards for Store time zone differing from the shopper's (including a different calendar date), Holidays and closed days the delivery date skips, A cutoff that passes while the shopper is still choosing, Time needed to finish checkout before the cutoff (checkoutMinutes). Limitation: verify cutoff-picker with issuer gateway.

How do I install cutoff-picker with shadcn?

Run `npx shadcn@latest add @bollard/cutoff-picker`. Sources added: registry/default/cutoff-picker/cutoff-picker.tsx. Package requirements: @date-fns/tz, @number-flow/react, date-fns, lucide-react, motion.

What props customize Cutoff Picker?

Cutoff Picker accepts `storeTimeZone`, `cutoff`, `leadDays`, `closedWeekdays`, `holidays`. Configures delivery slot, same day delivery, cutoff time behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of cutoff-picker?

The cutoff, holidays and closed days come from your props. Uses the visitor's clock unless you pass `now`; a wrong device clock skews the countdown Server requirement: Re-check the cutoff on the server at order time and reject or reschedule dates that are no longer available.

How does Cutoff Picker meet accessibility guidelines?

Dates are keyboard-navigable with arrow keys. The countdown is a role="img" with an aria-label; the animated digits are aria-hidden. Changes are announced in a role="status" region. Motion respects prefers-reduced-motion. Minimizes errors: missed same day delivery cutoff, delivery date changed silently.

Which components pair with Cutoff Picker?