IframeDetector

Show Preview
IframeDetector

About IframeDetector

Switch between two components automatically when your code runs inside an iframe versus top-level. Pass one component for embedded contexts, another for standalone. The detector handles the logic. Your users see the right interface instantly.

How to Use

  1. Add the component to your canvas

  2. Assign your iframe component

  3. Assign your top-level component (standalone experience)

Features

  • Automatic context detection

  • Zero loading states

  • Cross-origin iframe support

  • Renders immediately on load

  • No setup required