<MoonPayWidget> renders the MoonPay buy widget inline in your layout. It is
the declarative alternative to
client.setupWidget().
The widget presents the full buy flow — payment method selection, confirmation,
and transaction tracking — in a single embedded frame.
The
quote prop is mount-time only. Changing it after the component mounts
causes the widget to remount. If you need to update the quote without
remounting, use the headless
<MoonPayBuyFrame>
instead.WidgetScreen.tsx
Props
WidgetEvent
Use event.kind to handle each event.
"error" codes: "configurationError" | "apiError" | "generic"