dolfindevelopers

Recurring invoice from a contract

ComponentReceivablesSDK + UI

A drop zone that reads the recurring billing terms off a contract (PDF or image, up to 5 MB) and hands them back, and the banner shown above a form prefilled from them: reading confidence and the fields the contract did not state.

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

Ready to connect to Dolfin. Loads data through SDK hooks, 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/ar-schedule-contract

Also installs: base-theme, ui-ar-schedule-contract.

Usage

screen.tsx
import { ScheduleContractDropzone } from "@/components/dolfin/ar/schedule-contract";

// Place it anywhere inside your <DolfinProvider>.
<ScheduleContractDropzone onRead={handleRead} />

Renders inside DolfinProvider (set it up once). By default it loads its own data through the SDK. Supplied-data examples show how to override that behavior.

API reference

PropTypeDescription
onRead required(terms: ScheduleContractTerms) => voidCalled with the terms read off the contract, e.g. to open the create form prefilled.
disabledboolean
classNamestring

Customisation

Without editing the source, you can change:

Class names
className
Messages
ar.schedules.contract

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.

useMessagesuseScheduleContract

Files

Written to your app by the install command:

  • components/dolfin/ar/schedule-contract.tsx 66 lines