---
title: "Rich text quote element"
summary: "Displays a rich text quote block."
url: "https://docs.slack.dev/reference/block-kit/block-elements/rich-text-quote-element"
type: "reference"
subtype: "block-kit"
available_in_surfaces:
  - "Modals"
  - "Messages"
  - "Home tabs"
works_with_blocks:
  - "Rich text"
---

Source: https://docs.slack.dev/reference/block-kit/block-elements/rich-text-quote-element

# Rich text quote element

## Fields {#fields}

Field

Type

Description

Required?

`type`

String

The type of the sub-element; in this case, `rich_text_quote`.

Required

`elements`

Object \[\]

An array of rich text elements. Rich text elements include [`attachment_mention`](https://docs.slack.dev/reference/block-kit/block-elements/attachment-mention-element.md), [`broadcast`](https://docs.slack.dev/reference/block-kit/block-elements/broadcast-element.md), [`canvas`](https://docs.slack.dev/reference/block-kit/block-elements/canvas-element.md), [`canvas_user_mention`](https://docs.slack.dev/reference/block-kit/block-elements/canvas-user-mention-element.md), [`canvas_message_unfurl`](https://docs.slack.dev/reference/block-kit/block-elements/canvas-message-unfurl-element.md), [`channel`](https://docs.slack.dev/reference/block-kit/block-elements/channel-element.md), [`citation`](https://docs.slack.dev/reference/block-kit/block-elements/citation-element.md), [`color`](https://docs.slack.dev/reference/block-kit/block-elements/color-element.md), [`date`](https://docs.slack.dev/reference/block-kit/block-elements/date-element.md), [`emoji`](https://docs.slack.dev/reference/block-kit/block-elements/emoji-element.md), [`file`](https://docs.slack.dev/reference/block-kit/block-elements/file-element.md), [`link`](https://docs.slack.dev/reference/block-kit/block-elements/link-element.md), [`list_record`](https://docs.slack.dev/reference/block-kit/block-elements/list-record-element.md), [`message_mention`](https://docs.slack.dev/reference/block-kit/block-elements/message-mention-element.md), [`salesforce_data_field`](https://docs.slack.dev/reference/block-kit/block-elements/salesforce-data-field-element.md), [`tag`](https://docs.slack.dev/reference/block-kit/block-elements/tag-element.md), [`team`](https://docs.slack.dev/reference/block-kit/block-elements/team-element.md), [`text`](https://docs.slack.dev/reference/block-kit/block-elements/text-element.md), [`user`](https://docs.slack.dev/reference/block-kit/block-elements/user-element.md), [`usergroup`](https://docs.slack.dev/reference/block-kit/block-elements/usergroup-element.md), [`work_object_mention`](https://docs.slack.dev/reference/block-kit/block-elements/work-object-mention-element.md), [`workflow_mention`](https://docs.slack.dev/reference/block-kit/block-elements/workflow-mention-element.md).

Required

`border`

Number

Turn the border on or off.

Optional

## Example {#example}

![An example of a rich\_text\_quote block](/assets/images/bk_rich_text_quote_example-b88b4b8e52f6fb0fac7bb0fa5c802d59.png)

*   JSON
*   Python Slack SDK
*   Node Slack SDK
*   Java Slack SDK

```
{    "blocks": [        {            "type": "rich_text",            "block_id": "Vrzsu",            "elements": [                {                    "type": "rich_text_quote",                    "elements": [                        {                            "type": "text",                            "text": "What we need is good examples in our documentation."                        }                    ]                },                {                    "type": "rich_text_section",                    "elements": [                        {                            "type": "text",                            "text": "Yes - I completely agree, Luke!"                        }                    ]                }            ]        }    ]}
```

[View in Block Kit Builder](https://app.slack.com/block-kit-builder/T024BE7LD#%7B%22blocks%22:%5B%7B%22type%22:%22rich_text%22,%22block_id%22:%22Vrzsu%22,%22elements%22:%5B%7B%22type%22:%22rich_text_quote%22,%22elements%22:%5B%7B%22type%22:%22text%22,%22text%22:%22What%20we%20need%20is%20good%20examples%20in%20our%20documentation.%22%7D%5D%7D,%7B%22type%22:%22rich_text_section%22,%22elements%22:%5B%7B%22type%22:%22text%22,%22text%22:%22Yes%20-%20I%20completely%20agree,%20Luke!%22%7D%5D%7D%5D%7D%5D%7D)

```python
def example01() -> RichTextBlock:
    """
    Displays a rich text quote block.
    https://docs.slack.dev/reference/block-kit/block-elements/rich-text-quote-element/

    A rich text block with a quote followed by a section.
    """
    block = RichTextBlock(
        block_id="Vrzsu",
        elements=[
            RichTextQuoteElement(
                elements=[
                    RichTextElementParts.Text(
                        text="What we need is good examples in our documentation."
                    ),
                ]
            ),
            RichTextSectionElement(
                elements=[
                    RichTextElementParts.Text(text="Yes - I completely agree, Luke!"),
                ]
            ),
        ],
    )
    return block
```

```javascript
export function example01() {
  /**
   * @type {import('@slack/types').RichTextBlock}
   */
  const block = {
    type: "rich_text",
    block_id: "Vrzsu",
    elements: [
      {
        type: "rich_text_quote",
        elements: [
          {
            type: "text",
            text: "What we need is good examples in our documentation.",
          },
        ],
      },
      {
        type: "rich_text_section",
        elements: [
          {
            type: "text",
            text: "Yes - I completely agree, Luke!",
          },
        ],
      },
    ],
  };
  return block;
}
```

```java
public static RichTextBlock example01() {
    RichTextBlock block = Blocks.richText(rt -> rt.blockId("Vrzsu")
            .elements(List.of(
                    RichTextQuoteElement.builder()
                            .elements(List.of(RichTextSectionElement.Text.builder()
                                    .text("What we need is good examples in our documentation.")
                                    .build()))
                            .build(),
                    RichTextSectionElement.builder()
                            .elements(List.of(RichTextSectionElement.Text.builder()
                                    .text("Yes - I completely agree, Luke!")
                                    .build()))
                            .build())));
    return block;
}
```
