Tax Regime Compare

Tax Regime Compare is a copy-paste React component that stops picked the costlier tax regime 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/tax-regime-compare
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

StopsPicked the costlier tax regime

Was this component page useful?

How do I install Tax Regime Compare?

pnpm dlx shadcn@latest add @bollard/tax-regime-compare

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

How do I use Tax Regime Compare in React?

tax-regime-compare-usage.tsx
import { TaxRegimeCompare, type TaxInput } from "@/components/ui/tax-regime-compare"

return <TaxRegimeCompare value={value} onValueChange={setValue} />

What input mistakes does Tax Regime Compare catch?

  • The regime that costs more for these inputs
  • Break-even deductions where the old regime starts to win
  • Deductions that don't count under the new regime
  • Claims above their limits (80C ₹1.5 lakh, 80D, 80CCD(1B) ₹50,000, home loan)
  • HRA at 50% of salary in the eight listed cities, 40% elsewhere

What props does Tax Regime Compare accept?

TaxRegimeCompare props
PropTypeDefault
value

Controlled salary, deductions and chosen regime.

TaxInput—
defaultValue

Initial input when uncontrolled.

Partial<TaxInput>—
onValueChange

Called on every edit or fix.

(value: TaxInput) => void—
onCompare

Called when the comparison changes.

(result: TaxComparison) => void—
options

Age band, senior parents and government employer.

TaxOptions{}
locale

Locale for money.

string"en-IN"
messages

Any visible string; `labels` may be partial.

Partial<Omit<TaxRegimeMessages, "labels">> & { labels?: Partial<TaxRegimeMessages["labels"]> }—

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

How is Tax Regime Compare accessible?

  • Section labelled by its heading; every input has a <label>
  • Result status in a polite live region
  • After a fix, focus moves to the next fix
  • External verify link has visible text

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

What are the limitations and server boundaries?

  • Informational estimate for resident salaried individuals; not tax advice
  • Covers common deductions only: capital gains, business income, surcharge edge cases and marginal-relief nuances may be missing
  • Rules change every Budget; check the verified date and source

What validation rules apply to Tax Regime Compare?

Rules last verified:

Confirmed: no change in s.202 rates for tax year 2026-27; new-regime slabs 0–4L nil … above 24L 30%; rebate ₹60,000 up to ₹12 lakh (new) and ₹12,500 up to ₹5 lakh (old); 80C ₹1.5 lakh, 80D ₹25,000/₹50,000, 80CCD(1B) ₹50,000; HRA 50% for Mumbai, Kolkata, Delhi, Chennai, Hyderabad, Pune, Ahmedabad, Bengaluru. Standard deduction (₹75,000/₹50,000) and the ₹2 lakh home-loan limit were not re-checked on a primary page. Informational; verify with the official source or a professional. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Tax Regime Compare stop?

Picked the costlier tax regime

Also known as

income tax · old regime · new regime · itr · hra · 80c · 80d · nps

Field type

What dependencies does Tax Regime Compare require?

Tax Regime Compare facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameTax Regime Compare
Registry identifier@bollard/tax-regime-compare
Install commandnpx shadcn@latest add @bollard/tax-regime-compare
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 Tax Regime Compare

How does Tax Regime Compare validate Indian financial identifiers?

Tax Regime Compare stops picked the costlier tax regime. Complies with national standards for The regime that costs more for these inputs, Break-even deductions where the old regime starts to win, Deductions that don't count under the new regime, Claims above their limits (80C ₹1.5 lakh, 80D, 80CCD(1B) ₹50,000, home loan), HRA at 50% of salary in the eight listed cities, 40% elsewhere. Limitation: verify tax-regime-compare with issuer gateway.

How do I install tax-regime-compare with shadcn?

Run `npx shadcn@latest add @bollard/tax-regime-compare`. Sources added: registry/default/tax-regime-compare/tax-regime-compare.tsx, registry/default/tax-regime-compare/tax.ts. Package requirements: lucide-react.

What props customize Tax Regime Compare?

Tax Regime Compare accepts `value`, `defaultValue`, `onValueChange`, `onCompare`, `options`. Configures income tax, old regime, new regime behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of tax-regime-compare?

Informational estimate for resident salaried individuals; not tax advice. Covers common deductions only: capital gains, business income, surcharge edge cases and marginal-relief nuances may be missing. Rules change every Budget; check the verified date and source Server requirement: backend verification for tax-regime-compare.

How does Tax Regime Compare meet accessibility guidelines?

Section labelled by its heading; every input has a <label>. Result status in a polite live region. After a fix, focus moves to the next fix. External verify link has visible text. Minimizes errors: old vs new tax regime, which tax regime is better.

Which components pair with Tax Regime Compare?