Reminder schedule picker
Pick when payment reminders go out relative to the due date (1 week before to 1 week after) as toggle chips in timeline order, for invoice defaults or a single send.
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
Works with Dolfin’s SDK context, with appearance and behaviour you can customise. Requires DolfinProvider.
Installation
Needs the Dolfin registry token. The CLI copies the source into your app.
bunx --bun shadcn@4.23.0 add @dolfin/ar-reminder-offset-multi-selectAlso installs: button, base-theme, base-info-hint, ui-ar-reminder-offset-multi-select.
Usage
import { ReminderOffsetMultiSelect } from "@/components/dolfin/ar/reminder-offset-multi-select";
// Place it anywhere inside your <DolfinProvider>.
<ReminderOffsetMultiSelect value={value} onChange={handleChange} />Renders inside DolfinProvider (set it up once). It renders the data you pass as props.
API reference
| Prop | Type | Description |
|---|---|---|
value required | readonly ("OneWeekBefore" | "TwoDaysBefore" | "OnDueDate" | "TwoDaysAfter" | "OneWeekAfter")[] | |
onChange required | (next: InvoiceReminderOffset[]) => void | The new selection, in timeline order (earliest first). The order sent to the API does not matter. |
disabled | boolean | |
dirty | boolean | Rings the group as an unsaved change. |
showLabel | boolean | Shows the "Reminders" label with its explanation above the chips. |
className | string |
Customisation
Without editing the source, you can change:
- Class names
className- Messages
ar.invoiceDraft.remindersbase.infoHint.moreAbout
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.
useMessagesFiles
Written to your app by the install command:
components/dolfin/ar/reminder-offset-multi-select.tsx35 lines