Generate code to embed a diagram in a webpage
You can embed a draw.io diagram into a web page either as native HTML markup (rendered inline by the draw.io viewer script) or as an <iframe> that loads the lightbox. The complete reference — UI walk-throughs for both File → Embed → HTML and File → Embed → IFrame, plus the full list of viewer configuration keys supported in the data-mxgraph JSON — is maintained as a GitHub Discussion:
Embed HTML reference — jgraph/drawio Discussion #5617
Use the comments on that discussion for questions, clarifications, and updates.