Donation Form

Display a customizable donation form anywhere on your website.

Loading preview

Usage

import { DonationForm } from "@everfund/react-sdk";
<DonationForm
  code="ggsm"
  onSuccess={(e) => console.log("success", e)}
  onFailure={(e) => console.log("failure", e)}
/>

API Reference

PropValueDefault
code
string
/
domain
string
undefined
onFailure
(data: Record<string, unknown>) => void
undefined
onSuccess
(data: SuccessResponse) => void
undefined
styles
React.CSSProperties
undefined
Edit this page