Rich text block
Fields
| Field | Type | Description | Required? |
|---|---|---|---|
type | String | The type of block. For a rich text block, type is always rich_text. | Required |
elements | Object[] | An array of rich text objects - rich_text_list, rich_text_preformatted, rich_text_quote, and rich_text_section. See linked elements for more details. | Required |
block_id | String | A unique identifier for a block. If not specified, one will be generated. Maximum length for this field is 255 characters. block_id should be unique for each message or view and each iteration of a message or view. If a message or view is updated, use a new block_id. | Optional |
Usage info
The rich text block is also the output of the Slack client's WYSIWYG message composer, so all messages sent by end-users will have this format. Use this block to include user-defined formatted text in your Block Kit payload. While it is possible to format text with mrkdwn, rich_text is strongly preferred and allows greater flexibility.
You might encounter a rich_text block in a message payload, as a built-in type in apps created with the Deno Slack SDK, or as output of the rich_text_input block element.
Rich text blocks can be deeply nested. For instance: a rich_text_list can contain a rich_text_section which can contain bold style text. More details on how that works is shown in the examples on the pages for the rich_text_list, rich_text_preformatted, rich_text_quote, and rich_text_section block elements.