Installation

Load React, rl-ui, then rliSdk.init in a widget.

Widgets must expose window.React and window.ReactDOM (including createPortal) before rl-ui.js. Then call rliSdk.init() and render tags such as <rl-button>.

Docs previews skip the SDK handshake. They call defineCustomElements via the IIFE on this document.

To mimic marketplace iframes later, set NEXT_PUBLIC_RL_PREVIEW=iframe (reserved; not wired in the UI yet).