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

Source: https://docs.slack.dev/tools/node-slack-sdk/reference/types/interfaces/RichTextText

[@slack/types](https://docs.slack.dev/tools/node-slack-sdk/reference/types.md) / RichTextText

# Interface: RichTextText

Defined in: [block-kit/block-elements.ts:951](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/block-elements.ts#L951)

## Description {#description}

A generic text element for use in a rich text message.

## Extends {#extends}

*   [`RichTextStyleable`](https://docs.slack.dev/tools/node-slack-sdk/reference/types/interfaces/richtextstyleable.md)

## Properties {#properties}

### style? {#style}

```ts
style?: object;
```

Defined in: [block-kit/extensions.ts:86](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/extensions.ts#L86)

#### bold? {#bold}

```ts
bold?: boolean;
```

##### Description {#description-1}

When `true`, boldens the text in this element. Defaults to `false`.

#### code? {#code}

```ts
code?: boolean;
```

##### Description {#description-2}

When `true`, the text is preformatted in an inline code style. Defaults to \`false.

#### italic? {#italic}

```ts
italic?: boolean;
```

##### Description {#description-3}

When `true`, italicizes the text in this element. Defaults to `false`.

#### strike? {#strike}

```ts
strike?: boolean;
```

##### Description {#description-4}

When `true`, strikes through the text in this element. Defaults to `false`.

#### underline? {#underline}

```ts
underline?: boolean;
```

##### Description {#description-5}

When `true`, underlines the text in this element. Defaults to `false`.

#### Description {#description-6}

A limited style object for styling rich text `text` elements.

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

[`RichTextStyleable`](https://docs.slack.dev/tools/node-slack-sdk/reference/types/interfaces/richtextstyleable.md).[`style`](https://docs.slack.dev/tools/node-slack-sdk/reference/types/interfaces/richtextstyleable.md#style)

* * *

### text {#text}

```ts
text: string;
```

Defined in: [block-kit/block-elements.ts:959](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/block-elements.ts#L959)

#### Description {#description-7}

The text to render.

* * *

### type {#type}

```ts
type: "text";
```

Defined in: [block-kit/block-elements.ts:955](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/block-elements.ts#L955)

#### Description {#description-8}

The type of element. In this case `type` is always `text`.
