React components for React SDK reference for Crossmint offramp
CrossmintEmbeddedOfframp
Renders the Crossmint offramp in an iframe for one offramp session. Render it inside CrossmintProvider, 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.
Multiplier unit for font sizes, not a base font size. Default "4px": labels render at fontSizeUnit * 3.75 (15px), inputs at * 4 (16px), the primary button at * 4.25 (17px). Passing a body size such as "14px" (the VerificationAppearance convention) yields ~52px labels.
string
Multiplier unit for paddings and gaps, not a base spacing. Default "3.33px"; each spacing is calc(spacingUnit * k) with k between 3.6 and 4.42.