a component that renders an image with a fallback if the image fails to load.
Installation
Usage
import Img from "@/components/ui/Img";
<Img src="/some-url.png" alt="test" width={200} height={200} className="rounded-sm border" />
a component that renders an image with a fallback if the image fails to load.
import Img from "@/components/ui/Img";
<Img src="/some-url.png" alt="test" width={200} height={200} className="rounded-sm border" />