Module

x/nano_jsx/components/index.ts>Img

🎯 SSR first, lightweight 1kB JSX library.
Go to Latest
class Img
extends Component<Props>
import { Img } from "https://dotland.deno.dev/x/nano_jsx@v0.0.33/components/index.ts";

A useful Image component Add <Img lazy ..., to lazy load the img source Add <Img width="100" height="100" ..., to specify img element's size. Add <Img placeholder="src or element" ...., to prepare placeholder for img.

Constructors

new
Img(props: Props)