CrossmintEmbeddedOfframp
Renders the Crossmint offramp in an iframe for one offramp session. Render it insideCrossmintProvider, which takes your client-side API key. The component reloads the offramp when the value of credentials, appearance, locale or fill changes. payer and the callbacks can change without a reload.
Props
EmbeddedCheckoutV3Appearance
Fonts, colors and styles, the same object as embedded checkout’s
appearance.EmbeddedOfframpCredentials
required
The
sessionId and clientSecret from Create Offramp Session.boolean
Fill the container’s height instead of sizing to the content. The container needs a definite height.
Locale
The language of the screens. Defaults to the browser or device language, else
en-US.() => void
The user closed the flow. Without it, the Continue, Close and Cancel buttons do nothing.
(event: { orderId: string; txId: string }) => void
The deposit is confirmed. Can fire again for a reopened withdrawal, so dedupe by
orderId.(error: object) => void
Something went wrong. See
OfframpErrorReason. message is for logs, not for display.() => void
The first screen is shown. Fires once per load.
(event: object) => void
The flow moved to another step. See
OfframpStatus.EmbeddedOfframpPayer
required
Signs and sends the deposit. Use
createCrossmintWalletSigner(wallet) or your own EmbeddedOfframpPayer.Usage
Note: With fill, the component fills its container, so the container needs a definite height.

