Skip to main content

Rich text section element

Fields

FieldTypeDescriptionRequired?
typeStringThe type of sub-element; in this case, rich_text_section.Required
elementsObject []An array of rich text elements. Rich text elements include attachment_mention, broadcast, canvas, canvas_user_mention, canvas_message_unfurl, channel, citation, color, date, emoji, file, link, list_record, message_mention, salesforce_data_field, tag, team, text, user, usergroup, work_object_mention, workflow_mention.Required

Example

An example of a rich_text_section block

{
"blocks": [
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "Hello there, I am a basic rich text block!"
}
]
}
]
},
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "Hello there, "
},
{
"type": "text",
"text": "I am a bold rich text block!",
"style": {
"bold": true
}
}
]
}
]
},
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "Hello there, "
},
{
"type": "text",
"text": "I am an italic rich text block!",
"style": {
"italic": true
}
}
]
}
]
},
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "Hello there, "
},
{
"type": "text",
"text": "I am a strikethrough rich text block!",
"style": {
"strike": true
}
}
]
}
]
}
]
}

View in Block Kit Builder