---
title: "RichTextBlock"
summary: "@slack/web-api / RichTextBlock"
url: "https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/RichTextBlock"
type: "guide"
---

Source: https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/RichTextBlock

[@slack/web-api](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api.md) / RichTextBlock

# Interface: RichTextBlock

Defined in: packages/types/dist/block-kit/blocks.d.ts:432

## Description {#description}

Displays formatted, structured representation of text. It 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 workflow apps, or as output of the [RichTextInput](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/richtextinput.md).

## See {#see}

[Rich text block reference](https://docs.slack.dev/reference/block-kit/blocks/rich-text-block.md).

## Extends {#extends}

*   [`Block`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md)

## Properties {#properties}

### block_id? {#block_id}

```ts
block_id?: string;
```

Defined in: packages/types/dist/block-kit/blocks.d.ts:15

#### Description {#description-1}

A string acting as a unique identifier for a block. If not specified, a `block_id` will be generated. You can use this `block_id` when you receive an interaction payload to [identify the source of the action](https://docs.slack.dev/interactivity/handling-user-interaction.md#payloads). 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`.

#### Inherited from {#inherited-from}

[`Block`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md).[`block_id`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md#block_id)

* * *

### elements {#elements}

```ts
elements: RichTextBlockElement[];
```

Defined in: packages/types/dist/block-kit/blocks.d.ts:437

* * *

### type {#type}

```ts
type: "rich_text";
```

Defined in: packages/types/dist/block-kit/blocks.d.ts:436

#### Description {#description-2}

The type of block. For a rich text block, `type` is always `rich_text`.

#### Overrides {#overrides}

[`Block`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md).[`type`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md#type)
