PaymentForm
Amount → payee → method → date → memo.
npx shadcn add @lopifi/payment-formExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
amount → payee → method → date → memo. Amount comes first because it's what the user came to do, and it gives context to everything after.
- Progressive disclosure: memo, reference, and attachments behind "Add details".
- Validation on blur, never per-keystroke.
- Submit is bottom-anchored on phone, above the safe area and above the keyboard (
visualViewport), always visible. - The submit button states the amount:
Send $12,400.00. - Fee and arrival estimate update live below the amount with a value crossfade, never a count-up.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Payments
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section PaymentForm renders in, the calculators behind its figures, and the ledger payloads that feed it.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Payments changes
Your copy doesn’t update itself when we fix something here.
- One email when a Payments component needs a migration
- Nothing when nothing changes
Or install it now