Skip to content

Interface: ImageAttrs ​

Attributes of an image node.

Properties ​

PropertyTypeDescription
alt?string | nullText alternative. "" marks a decorative image; leave it out only if you will ask for it later.
height?number | nullHeight in pixels (1–20000).
srcstringImage URL. Must pass isAllowedImageSrc().
title?string | nullOptional title attribute.
width?number | nullWidth in pixels (1–20000), so the page does not jump while loading.