Skip to main content

@slack/web-api / ImageBlock

Type Alias: ImageBlock

type ImageBlock = object & Block &
| UrlImageObject
| SlackFileImageObject;

Defined in: packages/types/dist/block-kit/blocks.d.ts:206

Type Declaration​

alt_text​

alt_text: string;

Description​

A plain-text summary of the image. This should not contain any markup. Maximum length for this field is 2000 characters.

title?​

optional title?: PlainTextElement;

Description​

An optional title for the image in the form of a PlainTextElement object. Maximum length for the text in this field is 2000 characters.

type​

type: "image";

Description​

The type of block. For an image block, type is always image.

Description​

Displays an image. A simple image block, designed to make those cat photos really pop.

See​

Image block reference.