JSFiddle - React, Tailwind, and code Playground

HTML

<svg width="1000" height="1000" overflow="scroll">
    <g transform="rotate(5)">
    <rect width="300" height="400" fill="#22DD22" fill-opacity="0.5"/>
    </g>
    <foreignObject x="10" y="10" overflow="visible" width="10000" height="10000"
     requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
      <p style="display:table-cell;padding:10px;border:1px solid red;background-color:white;opacity:0.5;font-family:Verdana;font-size:20px;white-space: pre;
word-wrap: normal; overflow: visible; overflow-y: visible; overflow-x: visible;" contentEditable="true" xmlns="http://www.w3.org/1999/xhtml">Write here some text.
  Be smart and select some word.
    If you wanna be really COOL,
    paste here something cool!
        </p>
    </foreignObject>
</svg>