Skip to content
r.

react-iframe

robbestad/react-iframe · Public GitHub repository

Typed, zero-dependency iframe for React 18+. Real DOM refs, srcDoc, sandbox arrays, allowFullScreen that actually works, and postMessage helpers.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

react-iframe live demo screenshot
Captured from the live demo · 2026-10-31

About this project

Author-written excerpt from the project README.

Embed anything in React without fighting the native .

react-iframe is the typed, zero-dependency iframe component for React 18 and 19. Drop in a video, a payment widget, a third-party app, or an inline srcDoc document and get a real HTMLIFrameElement ref, every native attribute, and postMessage helpers that filter by origin and source.

Native iframes work. This package is for the parts that usually do not: TypeScript that matches the platform, sandbox as an array (joined, not exploded into characters), allowFullScreen that actually updates allow, and parent/child messaging without glue code.

Requirements and intended audience

Embed anything in React without fighting the native .

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-22. Source: https://github.com/robbestad/react-iframe/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-10-29. Saved release: v2.0.0 · 2026-09-01. These dates do not guarantee ongoing maintenance.

Technologies
React
Licence
ISC. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-19. This does not test every feature.

Browse related categories