Excalidraw Plugin
This page focuses on implementing the Excalidraw plugin and the code you need to embed Excalidraw into your editor. You can check out the CodeSandbox directly or view, edit and try out the code in real-time inside the embed. You can also add image resizing functionality to resize the plot, but it is not implemented in the below example to simplify the code.
Note: If the code is not working due to an import error, try opening the CodeSandbox in a separate tab (this should solve the problem).