--- title: Embed shape created_at: 1/31/2026 updated_at: 1/31/2026 keywords: - embed - youtube - figma - iframe - codesandbox - codepen - google maps - spotify - vimeo status: published date: 1/31/2026 --- The embed shape displays interactive content from external services within an iframe. When you paste a URL from a supported service onto the canvas, tldraw converts it to an embed with the appropriate dimensions and settings. See [EmbedShapeUtil](?) and [TLEmbedShape](?). ## Creating embeds Paste a supported URL onto the canvas, or create an embed shape programmatically: ```tsx editor.createShape({ type: 'embed', x: 100, y: 100, props: { url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', w: 560, h: 315, }, }) ``` The embed system recognizes URLs from supported services and converts them to their embeddable equivalents. A YouTube watch URL becomes an embed URL automatically. ### Pasting iframe code You can also paste raw `