#Could you use SVG with Image component?

4 messages · Page 1 of 1 (latest)

shrewd solar
#
// Header.tsx
import logo from "../images/logo.svg";
<Image src={logo} size={24} /> // This doesn't render
<img src={logo} /> // This renders
<svg>
<g
        fontFamily="Brandmark Sans 32 Color"
        fontSize="72"
        fontStyle="normal"
        fontWeight="400"
        textAnchor="middle"
    >
... rest of svg
</svg>

Did I do anything wrong with Image component?
What's the mantine / react way of doing it? with SVGR?

#

Could you use SVG with Image component?

proper zenith
shrewd solar
#

Thank you, my IDE didn't show the warning for this issue that's why I thought the size prop could work with <Image> intuitively