dolfindevelopers

Recurring invoice parts

ComponentReceivablesSDK + UI

Small pieces shared by the recurring invoice screens: the status pill, the progress meter (a bar when the run has an end, a count when it does not), cadence and relative-day wording, and the cancel confirmation.

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-parts

Also installs: alert-dialog, base-theme, base-status-badge, base-money, ui-ar-schedule-parts.

Usage

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

// Place it anywhere inside your <DolfinProvider>.
<ScheduleStatusBadge status={status} />

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
status required"Active" | "Cancelled" | "Paused" | "Completed"
classNamestring

Customisation

Without editing the source, you can change:

Class names
className
Messages
ar.schedules

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.

useMessagesuseScheduleActions

Files

Written to your app by the install command:

  • components/dolfin/ar/schedule-parts.tsx 164 lines