Match board
A React component in Beamline's Data & tables category.
Month-end matching as one picture: bank lines and books entries side by side with threads between them — solid for matched, dashed with the host's reason for suggested, a fan with its sum check for one-to-many — framed by the money still to explain, which shrinks with every match. Drag a line across to match (entries say how well they fit), tap it and then its entry, or M and Enter by keyboard; teach a rule from a match and watch its preview catch the rest, with the lines it leaves and why. A queue on phones.
Use it for
- Bank reconciliation, invoice-to-PO matching, payouts to orders, counted to expected stock: any "pair A with B" job where the unpaired ones are the problems.
- The host decides candidates, reasons, fits and what a rule catches; the part draws, explains and previews.
Not for
- Comparing two versions of one table → diff-table.
- Mapping import columns to fields → import-mapping.
Anatomy
- header: statement balance and date, books balance, the difference with how many bank lines are left (Reconciled to the … statement at zero)
- rule (after a manual match): the sentence with its text and category, the preview's catches and leaves, Preview and Save
- board: bank rows | the thread layer with suggestion pills and their cards | books rows (category, not in the bank yet, fit while dragging)
- queue (phone): one bank line, its best fits, other entries, Skip
States
- matching
- dragging (a live thread; entries say their fit)
- picking (keyboard)
- rule (draft)
- previewing (threads drawn one after another; lines left behind marked)
- reconciled
- queue (phone)
Keyboard
- Tab moves through bank rows; each row says its match or suggestions
- M on an unmatched bank row picks it; ↑/↓ move through the books entries, Enter matches, Escape cancels back to the row
- Suggestion pills are buttons: Enter opens the card with Match and Not this
- Make a rule, its fields, Preview and Save are ordinary controls; the difference is a live region
Motion
Threads follow the rows; a dragged line pulls a live thread to the pointer; a rule's preview draws its threads one after another (stroke draw, 180 ms apart). Reduced motion draws them at once.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label (required) | string | — | The account: "Business checking ··4410". |
left (required) | MatchLine[] | — | |
right (required) | MatchLine[] | — | |
matches (required) | MatchPair[] | — | |
balance (required) | { statement: number; statementDate: string; books: number; } | — | The statement's closing balance and date, and the books' balance for the same account, shown as given. The books include entries the bank has not cleared yet (`notInBank`); the account reads reconciled when no bank line is left unmatched and the statement equals the books less those entries. "Left to explain" is the money on the bank lines not matched yet. |
onMatch | ((pair: { left: string[]; right: string[]; adjustments?: { label: string; amount: numbe… | — | A match made here. `via` says how: a suggestion accepted (then `from` is that suggestion's id, so the host turns it confirmed instead of adding a pair, and `adjustments` are its own), a drag, a tap on each side, or the keyboard (M, then Enter). The host gives a new pair its id, and replaces any suggestion the new pair overlaps. |
onReject | ((pairId: string) => void) | — | A suggestion declined (Not this): the host removes it from `matches` and may remember not to suggest it again. |
fit | ((left: MatchLine, right: MatchLine) => string | null) | — | How well a books entry fits a bank line, in words, while it is dragged over: "same amount", "differs by $5.00". |
rules | { draft: (left: MatchLine) => MatchRuleDraft; preview: (draft: MatchRuleDraft) => Match… | — | Rules taught from a manual match: the first draft (called after onMatch, so the host's matches already hold that match), the host's preview on this month, and saving. |
categories | string[] | — | The books categories a rule can pick entries by (its `category`). |
currency | string | — | ISO code for the default money format. Default USD. |
format | ((amount: number) => string) | — | Money in the host's own format; it wins over `currency`. |
className | string | — | Classes on the documented visual root; no override by default. |
classNames | Partial<Record<"root" | "header" | "row" | "column" | "card" | "pill" | "threads" | "ru… | — | Classes for the named visual parts; no overrides by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no overrides by default. |
ref | Ref<HTMLDivElement> | — | Receives the documented native target or imperative handle; omitted by default. |
Built from
Dependencies
lucide-react
Import
import { MatchBoard } from "@beamline/match-board";
Get it
Match board is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in Data & tables
- Living table: A table that shows as much as fits on both axes: width decides which columns show (the rest ride in the name line, moving there rather than vanishing)…
- Availability layers: A week of bookable start times whose closed times explain themselves: every availability rule (hours, time off, bookings, buffers, rooms, lead time…
- Capacity terrain: A schedule that stands on a terrain of capacity: under each station's lane of jobs, every day's load rises to its capacity line and an overload is a…
- Domino move: A room board where one move shows its chain: drag a booking (or pick it and aim it with the keys) onto a taken room and the bookings it would push appear…
- Split anything: One splitter for money, quantities and time: a bar of the whole shows every target's part and what is not split yet; items are dragged onto targets…
- Approval route: A policy you can read by trying it: an amount on a log scale with the thresholds as marks (the arrows stop just under, at and just over each), the…
- Proposal twin: A proposal edited beside the client's exact page, the two linked both ways: a field in focus lights its twin on the page, scrolls it into view and joins…
- Quantity river: The life of one order line's quantity: at rest a bar of its real split ("5 delivered · 1 back in stock · 1 damaged · 5 cancelled"), unfolding into a…
- Stock horizon: Projected stock per item over the coming weeks: a strip of weeks with the safety line, weeks under safety in warn and short in danger, every dip said in…
- Ageing queue: Tickets that visibly age: each ticket's ring fills toward its own service target and steps from on time to late to very late, the words say when it is…
- Import lens: A messy import made fixable by kind: rows stream through the checks once with live counts; problems gather into groups that say what is wrong in words…
- Duplicate guard: A new record that watches for the one that already exists: as you type, the likely duplicates slide in beside the form with the fields that match lit and…
- Scan flow: A pick list that takes scans: each scan flies from the scan field into its row and fills that row's quantity ring, and the prompt moves to the next bin…
- Pack planner: The packing bench: the order's items sit in box outlines drawn to scale, each box filling to its padding line, weighing against its limit and naming the…
- Provenance lens: Hold Alt (or press Lens) over any number on the page and see what makes it: hairline threads draw from the number to the rows, cards and documents on…
- Record time machine: The record itself, rewound in place: a slim track of every change (a tick per change in its person's colour, hollow for automation, named moments as…
- Tension timeline: A plan where slack is something you see: every dependency is a string from one task's end to the next one's start, sagging with the days it has to spare…
- Replay bar: Rewind for anything live: pause a stream, scrub back to the moment you missed (markers for the ones that matter), step one update at a time, replay at a…
- Event calendar: A schedule of events by day, week or month: events that overlap sit side by side, drag one to another time or day or pull its bottom edge to change its…
- Kanban board: Work as cards in columns by stage: drag a card (or lift it with Space and walk it with the arrows) to another column or place, the cards around it make…
- Data grid: Virtualised local or server-driven grid: stable row IDs, manual sort and filters, pages or infinite loading, retry without losing rows, inline editing…
- Pivot table: Records summed up by the fields people choose: rows grouped by one or more fields that fold open level by level, columns split by another, one or more…
- Query builder: Conditions people build by hand to pick out records: each rule is a field, an operator that fits the field (contains, between, in the last N days, is any…
- Sort order: Several sort keys in order. Each key says its rank in words ("Sort by Plan, A to Z", "then by Size, largest first") with its order named for the field's…
- Metric rules: Ordered rules that colour a dashboard number. Each rule has a name for what its colour means ("At risk", not just red) and a tone (good, watch, act…
- Log viewer: Log lines as they stream: it follows the newest line until you scroll up, then counts what arrived and brings you back in one click; filter by level with…
- JSON viewer: A JSON value as a tree you can read and walk: branches open and close (one level, or all at once), closed ones preview what they hold, every value reads…
- JSON diff viewer: Two versions of a JSON value compared as one tree: added keys marked +, removed ones struck through with −, changed values read old → new, unchanged keys…
- Import mapping: Map the columns of a file to the fields of one record type, see what every value becomes, then run the import and get an outcome for each row…
- Diff table: Proposed edits to a table before they happen: new rows green, removals struck through, changed cells old → new; each change can be left out and Apply…
- Filter toolbar: The filters on a list kept in view: chips that remove themselves, Add filter with fields and their values, Clear all, and room for search or view controls.
- Table: A native HTML table for small datasets, composed with children or driven by records; shared server paging, sorting, filters, search, stable-ID selection…