Three ways to embed
For a bundled, typed integration, use
@revinel/browser (vanilla) or
@revinel/react (React components). Both wrap the same iframe with a friendlier API.
No-code script
Drop in the hosted script and mark any element to open the popup:window.Revinel.init({ workspaceId, container }) to mount inline and
window.Revinel.open({ workspaceId }) to open the popup.
Theming
The selector takes atheme of auto, light, or dark. auto (the default) matches the host
page’s color scheme. Set it on the embed snippet or pass it to the SDK.
Events
When you embed with the script or an SDK, the selector emits events you can hook into:onReadyfires once the selector has loaded and rendered.onCheckoutfires when the visitor starts checkout, just before the redirect to Stripe. It carries thetierPriceIdthey chose.onErrorfires if tiers fail to load or checkout cannot start.
@revinel/browser for the full options table and the popup-only onClose
event.