Supplier details
A supplier's contact, address, bank details and record cards: whether the account is confirmed for pay-by-bank and the button to confirm it, plus the address and bank details displays the confirmation dialog reuses.
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/ap-supplier-detailsAlso installs: ui-ap-supplier-details.
Usage
import { ApSupplierDetails } from "@/components/dolfin/ap/supplier-details";
// Place it anywhere inside your <DolfinProvider>.
<ApSupplierDetails supplier={supplier} />Renders inside DolfinProvider (set it up once). It renders the data you pass as props.
API reference
| Prop | Type | Description |
|---|---|---|
supplier required | { id?: string; organisationId?: string; name: string; email?: null | string; phone?: null | string; website?: null | string; taxNumber?: nul… | |
onConfirmBankDetails | () => void | |
canConfirmBankDetails | boolean | |
children | string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.Re… | Extra cards after the bank details (e.g. a default ledger account when accounting is connected). |
className | string |
Customisation
Without editing the source, you can change:
- Class names
className- Messages
ap.suppliers.detailsbase.infoHint
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.
useDolfinLocaleuseMessagesFiles
Written to your app by the install command:
components/dolfin/ap/supplier-details.tsx158 lines