<InlineSvg>
ComponentThe <InlineSvg>
component renders an <svg>
from a given string.
<InlineSvgsrc={`<svg width="300" height="200"><rect width="100%" height="100%" fill="#000000" /><circle cx="150" cy="100" r="80" fill="#1563ff" /><text x="150" y="125" font-size="60" text-anchor="middle" fill="#ffffff">SVG</text></svg>`}/>
Name | Description |
---|---|
src* string | Serialized SVG string to render |