Skip to main content
Every OnRamp wrapper accepts the same configuration. Only the names of the two callbacks differ, because each follows its framework’s conventions. Defaults below are OnRamp’s own defaults, so omitting a prop and passing its default value are equivalent.

Required

Callbacks

These are the only props whose shape differs between frameworks.

Appearance

darkModeColor is singular. Earlier versions of this guide showed darkModeColors, which OnRamp ignores.

Behaviour

Object shapes

Font sizes accept any standard CSS unit (px, rem, em, …).

Response shape

Handling connection errors

OnRamp dispatches a leenConnectionError event on window when connection creation fails. No wrapper surfaces this as a framework-level event, so listen for it directly.

Pinning a bundle version

The Angular and Vue wrappers accept a bundleVersion prop controlling which OnRamp bundle they load: "dev" for the development bundle, or a version string to pin a specific release. It defaults to latest.