---
title: "IframeDetector — Free Framer component · Best of Framer"
description: "Free Framer component · by Ahmad · Buttons. Render UI for iframe or standalone mode."
canonical: "https://framer.elliotli.dev/component/iframedetector"
---

[Home](/)/[Components](/components)/[Buttons](/components/category/buttons)/IframeDetector

# IframeDetector

Render UI for iframe or standalone mode.

[View on Framer](https://framer.com/marketplace/components/iframedetector/?via=elliot-li)

![IframeDetector preview image 1](https://framer.elliotli.dev/og/component/iframedetector/c1fdd08c8ae978eb/1600x1200.jpg)

## Summary

Render UI for iframe or standalone mode.

## Description

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
    

## Rank history [How rankings work →](/terms#rankings)

-   All · #6664

## Details

- **Author**: Ahmad
- **Published**: 2026-04-08
- **Updated**: 2026-04-08
- **Added**: 2026-03-28
- **Categories**: Buttons

## More like this

-   [Liquid Blob Button](/component/liquid-blob-button) — Oddframe · Free — Interactive Liquid Blob CTA Button
-   [Pixel Face Toggle](/component/pixel-face-toggle) — Zac Nielson · $9 — Dark mode switch with a pixel face
-   [Liquid Hover Media](/component/liquid-hover-media) — Bardia Madani · $5 — Fluid media distortion on hover
-   [Eye Glow Button](/component/eye-glow-button) — Frame Native · Free — Cursor-following eyes, soft glow
