ImageProps
The attributes imageProps returns; every key is an attribute name of <img>.
The attributes imageProps returns; every key is an attribute name of <img>.
Import#
ts
import type { ImageProps } from "@shadow-js/dusk";
Signature#
ts
interface ImageProps {
readonly src: string;
readonly srcset: string;
readonly sizes: string;
readonly width: number;
readonly height: number;
readonly alt: string;
readonly loading: "lazy" | "eager";
readonly decoding: "async";
readonly fetchpriority: "high" | "auto";
readonly style: string;
}
Members#
| Name | Type | Description |
|---|---|---|
src |
readonly src: string |
|
srcset |
readonly srcset: string |
|
sizes |
readonly sizes: string |
|
width |
readonly width: number |
|
height |
readonly height: number |
|
alt |
readonly alt: string |
|
loading |
readonly loading: "lazy" | "eager" |
|
decoding |
readonly decoding: "async" |
|
fetchpriority |
readonly fetchpriority: "high" | "auto" |
|
style |
readonly style: string |