Skip to content

Properties#

className targets the wrapping figure element. All other native image properties target the inner img element. Use figureProps to pass additional native properties to the wrapper.

TypeDescription
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
imgClassstring(deprecated) Deprecated. Use imageClassName instead.
imageClassNamestring(optional) Custom className for the inner img element.
figurePropsHTMLProps<HTMLElement>(optional) Native HTML properties for the wrapping figure element.
elementHTMLElement
string
(deprecated) Deprecated. The wrapper should remain a figure to preserve its semantics.
captionstring(optional) Use to define a caption for the image. Uses <figcaption>.
loading"eager"
"lazy"
(optional) Can either be eager or lazy. Defaults to eager.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.
Suggest an edit