Skip to main content

@slack/types / RichTextPreformatted

Interface: RichTextPreformatted

Defined in: block-kit/block-elements.ts:1043

Description​

A block of preformatted text within a rich text field.

Extends​

Properties​

border?​

optional border?: 0 | 1;

Defined in: block-kit/extensions.ts:76

Description​

Whether to render a quote-block-like border on the inline side of the list. 0 renders no border while 1 renders a border.

Inherited from​

RichTextBorderable.border


elements​

elements: (RichTextLink | RichTextText)[];

Defined in: block-kit/block-elements.ts:1051

Description​

An array of either RichTextLink or RichTextText comprising the preformatted text.


type​

type: "rich_text_preformatted";

Defined in: block-kit/block-elements.ts:1047

Description​

The type of element. In this case type is always rich_text_preformatted.