Przejdź do głównej zawartości

Interface: ImageComponentProps

Properties​

alt?​

optional alt?: string

Alt text override. Defaults to data.altText. Pass an empty string (alt="") when the image is purely decorative — explicit empty alt is the correct accessibility signal.


className?​

optional className?: string

Class name for styling — keeps the component headless.


data​

data: ImageData

Image payload from a GraphQL query (url, altText, width, height, thumbhash).


priority?​

optional priority?: boolean

Above-the-fold flag. When true: loading="eager" + fetchPriority="high". When false (default): loading="lazy" + fetchPriority="auto".


sizes?​

optional sizes?: string

Responsive sizes attribute. Defaults to 100vw.


style?​

optional style?: CSSProperties

Inline style override. Merged with the blur placeholder background.