dolfindevelopers

Receipt parts

ComponentExpensesSDK + UI

Pieces shared by the receipt screens: the receipt status badge (Unreadable, Reading, Matched, Waiting to match), the extraction and match badges, the match score meter and the small field label.

Component: A piece you place inside your own screens: a table, a form, a card or a dialog. You decide the layout around it. Pages vs components

Choose your integration

Works with Dolfin’s SDK context, with appearance and behaviour you can customise. Requires DolfinProvider.

Loading preview…

Installation

Needs the Dolfin registry token. The CLI copies the source into your app.

Terminal
bunx --bun shadcn@4.23.0 add @dolfin/expenses-receipt-parts

Also installs: base-status-badge, base-theme, ui-expenses-receipt-parts.

Usage

screen.tsx
import { ReceiptEyebrow } from "@/components/dolfin/expenses/receipt-parts";

// Place it anywhere inside your <DolfinProvider>.
<ReceiptEyebrow />

Renders inside DolfinProvider (set it up once). It renders the data you pass as props.

API reference

PropTypeDescription
childrenstring | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.Re…
classNamestring

Customisation

Without editing the source, you can change:

Class names
className
Messages
expenses.receipts.extractionexpenses.receipts.matchexpenses.receipts.status

Or edit the installed file directly: it is your code. See theming for colours and fonts.

Hooks

The SDK hooks this component uses. Use them directly from @dolfinai/react to build your own version.

useMessages

Files

Written to your app by the install command:

  • components/dolfin/expenses/receipt-parts.tsx 54 lines