section_block: Section Block

View source: R/layout_blocks.R

section_blockR Documentation

Section Block

Description

A section is one of the most flexible blocks available - it can be used as a simple text block, in combination with text fields, or side-by-side with any of the available block elements.

Usage

section_block(text = NULL, block_id = NULL, fields = NULL, accessory = NULL)

Arguments

text

The text for the block, in the form of a text_object. Maximum length for the text in this field is 3000 characters. This field is not required if a valid array of fields objects is provided instead.

block_id

A string acting as a unique identifier for a block. If not specified, one will be generated. You can use this block_id when you receive an interaction payload to identify the source of the action. Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of a message. If a message is updated, use a new block_id.

fields

Required if no text is provided. A list of text_objects. Any text objects included with fields will be rendered in a compact format that allows for 2 columns of side-by-side text. Maximum number of items is 10. Maximum length for the text in each item is 2000 characters.

accessory

One of the available element objects.

See Also

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

Other Blocks: actions_block(), context_block(), divider_block(), file_block(), header_block(), image_block(), input_block()


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.