@mocanvas/mocanvas · function

RichTextSVG

declare function RichTextSVG({ richText, bounds, fontSize, fontFamily, color, textAlign, verticalAlign, padding, wrap, fontWeight }: RichTextSVGProps): react.JSX.Element

A rich-text label as SVG markup.

Produced by the same textToSvg the file exporter uses, so what a shape shows on screen and what lands in an exported file cannot drift apart in layout.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.