I am experiencing some trouble with adding custom shapes (svg) with text outside so it doesnt distort when resizing the svg. But the problem i have is that this way of adding the shape just returns errors:
A shape must always be wrapped inside a container element such as a div, section, or any other valid HTML tag.
Here is the documentation for custom shapes:
In your example, you’ve specified width and height for the SVG, but the parent element does not have any dimensions set. If you define the height and width for the parent container, the SVG will automatically scale to fit the full size of the shape.