Skip to main content

Type Alias: ImageBlock

type ImageBlock: object & Block & UrlImageObject | SlackFileImageObject;

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.

Defined in

block-kit/blocks.ts:174