Skip to main content

@slack/types / ImageElement

Type Alias: ImageElement

type ImageElement = object &
| UrlImageObject
| SlackFileImageObject;

Defined in: block-kit/block-elements.ts:251

Type Declaration​

alt_text​

alt_text: string;

Description​

A plain-text summary of the image. This should not contain any markup.

type​

type: "image";

Description​

The type of element. In this case type is always image.

Description​

Displays an image as part of a larger block of content. Use this image block if you want a block with only an image in it.

See​

Image element reference.