So i have this component where i want to change the fill property of the svg logo imported. But unlike React in Qwik using an image like your calling a component doesn't work. or may be it's because of typescript, because the fill
property throw the error Type '{ fill: string; }' is not assignable to type 'IntrinsicAttributes'. Property 'fill' does not exist on type 'IntrinsicAttributes'.
import { component$, useContext, useStylesScoped$ } from "@builder.io/qwik";
import styles from "./navbar.css?inline";
import TeslaLogo from "../../assets/images/tesla-logo.svg";
import Navigation from "./Navigation";
import { navbarContext } from "~/context/appContext";
const Navbar = component$(() => {
useStylesScoped$(styles);
const store = useContext(navbarContext)
return (
<div class="container">
<TeslaLogo fill='red'/>
<div class='img'><img src={TeslaLogo} alt="tesla-logo" class="tesla-logo" /></div>
<div class='btn'><button class="menu-btn" onClick$={() => store.openNav = true}>Menu</button></div>
{store.openNav && <Navigation />}
</div>
);
});
export default Navbar;
if i want to use the logo many times in differnet pages with differnt color fill will i need to have as many logos as the number of colors i will like the logo to change to ?