- Free
- Lite
- Full
Free is on public npm, with no key. It has the Adjust tools, and a small “embededitor.com” badge in the corner of the menu.The server sends only an empty host (From there, props apply live as in React.
Install
Render
The React entry starts with'use client', so a server component can render EmbedEditor directly.app/edit/page.tsx
<div data-ee-host="">). The editor mounts in the browser after hydration, with no hydration warning.Update Props
A server component can pass only serializable props. Callbacks such asonProcess and onClose need a client component around the editor.app/edit/photo-editor.tsx
Safe Areas
Export the viewport from the root layout, so the editor knows about the notch and the home indicator.app/layout.tsx
Clean Up
openEditor and mountEditor touch the DOM. Call them from an event handler or an effect, never during a server render. Importing either entry on the server touches nothing of window, document or navigator.The Pages Router works the same way: the page renders the empty host on the server and the editor after hydration. Verified with Next.js 14.2 (webpack) and 16.3 (Turbopack).Next Steps
React
The component, the modal and live props.
Inline and Page
Show the editor in a box or over the whole viewport.