Skip to main content

@slack/web-api / RichTextPreformatted

Interface: RichTextPreformatted

Defined in: packages/types/dist/block-kit/block-elements.d.ts:927

Description​

A block of preformatted text within a rich text field.

Extends​

Properties​

border?​

optional border?: 0 | 1;

Defined in: packages/types/dist/block-kit/extensions.d.ts:66

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: packages/types/dist/block-kit/block-elements.d.ts:935

Description​

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


type​

type: "rich_text_preformatted";

Defined in: packages/types/dist/block-kit/block-elements.d.ts:931

Description​

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