Bill Split Check

Bill Split Check is a copy-paste React component that stops tip added on top of service charge 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/bill-split-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 3 extra npm packages
  • A11y guidance in docs

StopsTip added on top of service charge

Was this component page useful?

How do I install Bill Split Check?

pnpm dlx shadcn@latest add @bollard/bill-split-check

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

How do I use Bill Split Check in React?

bill-split-check-usage.tsx
import { BillSplitCheck, type Receipt, type SplitValue } from "@/components/ui/bill-split-check"

return <BillSplitCheck receipt={RECEIPT} people={PEOPLE} payerId="meera" currency="INR" locale="en-IN" defaultValue={START} />

What input mistakes does Bill Split Check catch?

  • Items nobody claimed
  • Tax counted twice, or a tip added on top of a service charge
  • A split total that does not match the printed total (allowing for a round-off line)
  • How much an equal split costs the person who ordered least
  • Rounding drift, by largest-remainder rounding so shares add up exactly

What props does Bill Split Check accept?

BillSplitCheck props
PropTypeDefault
receipt* (required)

The receipt as printed: items, tax lines, service charge and total.

Receipt—
people* (required)

Everyone at the table.

SplitPerson[]—
payerId* (required)

Who paid the bill; every other row says what they owe this person.

string—
currency* (required)

ISO currency code.

string—
value

Controlled claims, tip and options.

SplitValue—
defaultValue

Initial split when uncontrolled.

Partial<SplitValue>—
onValueChange

Called with the split whenever it changes.

(value: SplitValue) => void—
showServiceNote

Show the India service-charge note with the tip warning. Default true when currency is INR.

boolean—
locale

BCP 47 locale for money formatting.

string—
messages

Override any visible string.

Partial<BillSplitCheckMessages>—

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

How is Bill Split Check accessible?

  • Per-person item toggles are buttons with aria-pressed and an aria-label naming person and item
  • Split mode is a role="radiogroup" with arrow-key navigation
  • The tip field has a <label> and aria-invalid when it duplicates a service charge
  • Status is 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?

  • Works from the receipt lines you pass in; it does not read receipts
  • The tax-twice and wrong-total checks need the printed total

What expensive mistakes does Bill Split Check stop?

Tip added on top of service charge

Also known as

split the bill · splitwise · restaurant bill · receipt · gst · service charge · tip · settle up

Field type

What dependencies does Bill Split Check require?

Bill Split Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameBill Split Check
Registry identifier@bollard/bill-split-check
Install commandnpx shadcn@latest add @bollard/bill-split-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, motion, @number-flow/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 Bill Split Check

How does Bill Split Check validate Indian financial identifiers?

Bill Split Check stops tip added on top of service charge. Complies with national standards for Items nobody claimed, Tax counted twice, or a tip added on top of a service charge, A split total that does not match the printed total (allowing for a round-off line), How much an equal split costs the person who ordered least, Rounding drift, by largest-remainder rounding so shares add up exactly. Limitation: verify bill-split-check with issuer gateway.

How do I install bill-split-check with shadcn?

Run `npx shadcn@latest add @bollard/bill-split-check`. Sources added: registry/default/bill-split-check/bill-split-check.tsx, registry/default/bill-split-check/split.ts. Package requirements: lucide-react, motion, @number-flow/react.

What props customize Bill Split Check?

Bill Split Check accepts `receipt`, `people`, `payerId`, `currency`, `value`. Configures split the bill, splitwise, restaurant bill behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of bill-split-check?

Works from the receipt lines you pass in; it does not read receipts. The tax-twice and wrong-total checks need the printed total Server requirement: backend verification for bill-split-check.

How does Bill Split Check meet accessibility guidelines?

Per-person item toggles are buttons with aria-pressed and an aria-label naming person and item. Split mode is a role="radiogroup" with arrow-key navigation. The tip field has a <label> and aria-invalid when it duplicates a service charge. Status is announced in a role="status" region; motion respects prefers-reduced-motion. Minimizes errors: split bill doesn't add up, tax added twice when splitting.

Which components pair with Bill Split Check?