Notice Period Check

Notice Period Check is a copy-paste React component that stops wrong last working day after resigning 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/notice-period-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

StopsWrong last working day after resigning

Was this component page useful?

How do I install Notice Period Check?

pnpm dlx shadcn@latest add @bollard/notice-period-check

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

How do I use Notice Period Check in React?

notice-period-check-usage.tsx
import { NoticePeriodCheck, type NoticeInput, type NoticePolicy } from "@/components/ui/notice-period-check"

<NoticePeriodCheck policy={POLICY} timeZone="Asia/Kolkata" holidays={HOLIDAYS} leaveBalance={6} value={value} onValueChange={setValue} />

What input mistakes does Notice Period Check catch?

  • Month-end arithmetic such as 31 Jan + 1 month
  • Last day on a weekend or holiday
  • Resignation email dated differently in HR's time zone
  • Unpaid leave pushing the date out, and leave set-off
  • Buyout cost of leaving early, plus a line to copy to HR

What props does Notice Period Check accept?

NoticePeriodCheck props
PropTypeDefault
policy* (required)

Notice length and the rules that move it.

NoticePolicy—
value

Controlled input.

NoticeInput—
defaultValue

Initial input when uncontrolled.

Partial<NoticeInput>—
onValueChange

Called on every edit or fix.

(value: NoticeInput) => void—
onResultChange

Called whenever the result changes, for saving or showing elsewhere.

(result: NoticeResult | null) => void—
timeZone

The employee's IANA time zone, where "Resignation sent" is read.

string"Asia/Kolkata"
holidays

Public and company holidays.

Holiday[][]
leaveBalance

Leave days available to set off against notice.

number—
locale

Locale for dates and money.

string"en-IN"
currency

ISO 4217 currency for the buyout.

string"INR"
messages

Any visible string.

Partial<NoticePeriodMessages>—

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

How is Notice Period Check accessible?

  • Section labelled by its heading; every input has a visible label
  • The sent-at field's label names the time zone
  • Focus moves to the first fix 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?

  • Your contract and policy decide; defaults (notice from the next day) are the common reading, not a rule
  • Holidays and leave balance come from your props
  • Not legal advice

What validation rules apply to Notice Period Check?

Rules last verified:

Informational, not legal advice. Confirmed the UK reading that notice usually runs from the day after it is handed in. Indian contract practices mentioned in the code were not verified. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Notice Period Check stop?

Wrong last working day after resigning

Also known as

notice period · resignation · last working day · lwd · hr portal · exit · notice buyout · relieving

What dependencies does Notice Period Check require?

Notice Period Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameNotice Period Check
Registry identifier@bollard/notice-period-check
Install commandnpx shadcn@latest add @bollard/notice-period-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 Notice Period Check

How does Notice Period Check validate Indian financial identifiers?

Notice Period Check stops wrong last working day after resigning. Complies with national standards for Month-end arithmetic such as 31 Jan + 1 month, Last day on a weekend or holiday, Resignation email dated differently in HR's time zone, Unpaid leave pushing the date out, and leave set-off, Buyout cost of leaving early, plus a line to copy to HR. Limitation: verify notice-period-check with issuer gateway.

How do I install notice-period-check with shadcn?

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

What props customize Notice Period Check?

Notice Period Check accepts `policy`, `value`, `defaultValue`, `onValueChange`, `onResultChange`. Configures notice period, resignation, last working day behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of notice-period-check?

Your contract and policy decide; defaults (notice from the next day) are the common reading, not a rule. Holidays and leave balance come from your props. Not legal advice Server requirement: backend verification for notice-period-check.

How does Notice Period Check meet accessibility guidelines?

Section labelled by its heading; every input has a visible label. The sent-at field's label names the time zone. Focus moves to the first fix after a change. Minimizes errors: notice period calculation, last working day wrong.

Which components pair with Notice Period Check?