Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.07 KB

Accessory.md

File metadata and controls

34 lines (26 loc) · 1.07 KB

`Accessory` Blocks

An Accessory is shown in the upper right of a Section block. It is not used in any other block.

There can only be one Accessory and the available types are limited to:

If the allowed accessory blocks are used within a Section, they autowrap themselves in an Accessory. One might still want to use the blocks to make it explicit.

Example:

Section {
  "Hello World!"
  
  Accessory {
    Image("A cute kitten", url: URL("http://placekitten.com/128/128")!)
  }
}

This contains a DatePicker Accessory in the Section block: block types

Docs: https://api.slack.com/reference/block-kit/blocks#section