JSFiddle - React, Tailwind, and code Playground

HTML

<svg width="100%" height="510">
	<g transform="translate(650,150)">
		<g transform="translate(0,100)">
			<g>
				<rect x="-150" y="-14.9" width="300" height="30" style="fill: blue"/>
				<text dx="-135" dy="0.3" text-anchor="start" style="fill: white">
					<tspan x="-10" dy="0.3em">Test Node</tspan>
				</text>
			</g><g>
				<rect x="125" y="-15" width="25" height="30" style="fill: red;"/>
				<polygon points="9.7,8.814 9.7,8.902 8.15,8.082 8.15,6.31 6.912,6.31 6.912,3.98 8.975,3.98 8.975,0 4.025,0 4.025,3.98 6.088,3.98 6.088,6.31 4.85,6.31 4.85,8.104 3.3,8.916 3.3,8.814 0,8.814 0,12 3.3,12 3.3,9.82 4.85,9.01 4.85,9.494 8.15,9.494 8.15,8.99 9.7,9.811 9.7,12 13,12 13,8.814 " style="fill: yellow;"/>
			</g>
		</g>
	</g>
</svg>