@slack/web-api / ContainerBlock
Interface: ContainerBlock
Defined in: packages/types/dist/block-kit/blocks.d.ts:120
Description
A general-purpose wrapper for grouping child blocks together, with a configurable size.
See
Extends
Properties
block_id?
optional block_id?: string;
Defined in: packages/types/dist/block-kit/blocks.d.ts:15
Description
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.
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
child_blocks
child_blocks: (
| RichTextBlock
| ActionsBlock
| ContextBlock
| DividerBlock
| FileBlock
| HeaderBlock
| ImageBlock
| InputBlock
| SectionBlock
| TableBlock
| VideoBlock)[];
Defined in: packages/types/dist/block-kit/blocks.d.ts:142
Description
An array of child blocks. Maximum 10 blocks.
default_collapsed?
optional default_collapsed?: boolean;
Defined in: packages/types/dist/block-kit/blocks.d.ts:158
Description
Whether the container is collapsed by default. Requires is_collapsible to be true. Defaults to false.
has_header_divider?
optional has_header_divider?: boolean;
Defined in: packages/types/dist/block-kit/blocks.d.ts:163
Description
Whether to show a visible border separating header from content.
Only applies when is_collapsible is not true. Defaults to false.
icon?
optional icon?: ImageElement;
Defined in: packages/types/dist/block-kit/blocks.d.ts:150
Description
An image element displayed alongside the title and subtitle.
is_collapsible?
optional is_collapsible?: boolean;
Defined in: packages/types/dist/block-kit/blocks.d.ts:154
Description
Whether the container can be collapsed. Defaults to false.
rich_text_title?
optional rich_text_title?: RichTextBlock;
Defined in: packages/types/dist/block-kit/blocks.d.ts:134
Description
Rich text title for the container. Takes precedence over title if both are provided.
One of title or rich_text_title is required.
subtitle?
optional subtitle?: TextObject;
Defined in: packages/types/dist/block-kit/blocks.d.ts:138
Description
Subtitle for the container in plain text or mrkdwn format. Maximum length is 150 characters.
title?
optional title?: PlainTextElement;
Defined in: packages/types/dist/block-kit/blocks.d.ts:129
Description
Plain text title for the container. Maximum length is 150 characters.
One of title or rich_text_title is required.
type
type: "container";
Defined in: packages/types/dist/block-kit/blocks.d.ts:124
Description
The type of block. For a container block, type is always container.
Overrides
width?
optional width?: "narrow" | "standard" | "wide" | "full";
Defined in: packages/types/dist/block-kit/blocks.d.ts:146
Description
Controls the width of the container. Defaults to "standard".