CTC Breakdown Input

CTC Breakdown Input is a copy-paste React component that stops ctc mistaken for take-home pay 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/ctc-breakdown-input
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

StopsCTC mistaken for take-home pay

Was this component page useful?

How do I install CTC Breakdown Input?

pnpm dlx shadcn@latest add @bollard/ctc-breakdown-input

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

How do I use CTC Breakdown Input in React?

ctc-breakdown-input-usage.tsx
import { CtcBreakdownInput } from "@/components/ui/ctc-breakdown-input"

<CtcBreakdownInput defaultValue={{ ctc: 2_400_000, variable: 400_000, esop: 300_000, joiningBonus: 200_000, pf: 21_600 }} />

What input mistakes does CTC Breakdown Input catch?

  • Variable pay, ESOPs and one-time bonuses counted in the headline
  • Gratuity and employer PF that never reach the bank account
  • In-hand pay far below the headline (minInHandRatio)
  • Parts that add up to more than the CTC

What props does CTC Breakdown Input accept?

CtcBreakdownInput props
PropTypeDefault
value

Controlled CTC parts.

Partial<CtcParts>—
defaultValue

Initial CTC parts when uncontrolled.

Partial<CtcParts>{}
onValueChange

Called with the parts whenever one changes.

(parts: CtcParts) => void—
minInHandRatio

Flag the offer when monthly in-hand × 12 is below this share of CTC.

number0.7
maxVariableShare

Flag variable pay above this share of CTC.

number0.2
assumptions

Override the in-hand assumptions (basic share, PF, professional tax, standard deduction).

InHandAssumptions{}
aria-describedby

Merged onto the CTC input.

string—
messages

Override any visible string.

Partial<CtcBreakdownInputMessages>—

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

How is CTC Breakdown Input accessible?

  • Each amount has a <label>; aria-invalid and aria-describedby to its error
  • Colour swatches are aria-hidden; parts are named in text
  • Results are announced in a visually hidden aria-live="polite" region
  • Estimate actions move focus to the field they fill

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

What are the limitations and server boundaries?

  • An estimate under India's new tax regime only; old-regime deductions, HRA and other income are not modelled
  • Assumes basic is 50% of fixed pay, PF capped at the ₹15,000/month wage ceiling and ₹2,500 professional tax unless you change the assumptions
  • Tax rules are built in as of the verification date and need updating each budget

What validation rules apply to CTC Breakdown Input?

Rules last verified:

Informational; not tax advice. Checked new-regime slabs (₹4 L nil up to 30% above ₹24 L) and the ₹60,000 87A rebate up to ₹12 L for AY 2026-27. Not checked: that FY 2026-27 is unchanged, surcharge bands, the 4.81% gratuity factor, the PF wage ceiling and professional tax. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does CTC Breakdown Input stop?

CTC mistaken for take-home pay

Also known as

ctc · in-hand salary · take home · lpa · salary breakup · offer letter · esop · pf

Field type

What dependencies does CTC Breakdown Input require?

CTC Breakdown Input facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameCTC Breakdown Input
Registry identifier@bollard/ctc-breakdown-input
Install commandnpx shadcn@latest add @bollard/ctc-breakdown-input
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 CTC Breakdown Input

How does CTC Breakdown Input validate Indian financial identifiers?

CTC Breakdown Input stops cTC mistaken for take-home pay. Complies with national standards for Variable pay, ESOPs and one-time bonuses counted in the headline, Gratuity and employer PF that never reach the bank account, In-hand pay far below the headline (minInHandRatio), Parts that add up to more than the CTC. Limitation: verify ctc-breakdown-input with issuer gateway.

How do I install ctc-breakdown-input with shadcn?

Run `npx shadcn@latest add @bollard/ctc-breakdown-input`. Sources added: registry/default/ctc-breakdown-input/ctc-breakdown-input.tsx. Package requirements: lucide-react.

What props customize CTC Breakdown Input?

CTC Breakdown Input accepts `value`, `defaultValue`, `onValueChange`, `minInHandRatio`, `maxVariableShare`. Configures ctc, in-hand salary, take home behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of ctc-breakdown-input?

An estimate under India's new tax regime only; old-regime deductions, HRA and other income are not modelled. Assumes basic is 50% of fixed pay, PF capped at the ₹15,000/month wage ceiling and ₹2,500 professional tax unless you change the assumptions. Tax rules are built in as of the verification date and need updating each budget Server requirement: backend verification for ctc-breakdown-input.

How does CTC Breakdown Input meet accessibility guidelines?

Each amount has a <label>; aria-invalid and aria-describedby to its error. Colour swatches are aria-hidden; parts are named in text. Results are announced in a visually hidden aria-live="polite" region. Estimate actions move focus to the field they fill. Minimizes errors: ctc to in hand salary, in hand salary calculator.

Which components pair with CTC Breakdown Input?