Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 967 Bytes

File metadata and controls

41 lines (30 loc) · 967 Bytes

`Image` Blocks

Show a remote image.

This can be a top level block element (aligned vertically within the content), or an element within a Context block, or Section accessory.

Example:

Image("A cute kitten",
      url: URL("http://placekitten.com/500/500")!)

Two Images in a Contexts block: block types

Docs: https://api.slack.com/reference/block-kit/block-elements#image

Blocks API Representation

When used as a block:

{
  "type"      : "image",
  "image_url" : "http://placekitten.com/500/500",
  "alt_text"  : "A cute kitten",
  "title"     : {
    "type"  : "plain_text",
    "text"  : "A cute kitten",
    "emoji" : true
  }
}