22
33# Interface: CardBlock
44
5- Defined in: [ block-kit/blocks.ts:139 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L139 )
5+ Defined in: [ block-kit/blocks.ts:138 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L138 )
66
77## Description
88
9- A rich display block for presenting structured content such as recommendations, results, or work items.
10- At least one of ` hero_image ` , ` title ` , ` actions ` , or ` body ` must be provided.
9+ Displays content in a card. At least one of ` hero_image ` , ` title ` , ` actions ` , or ` body ` must be provided.
1110
1211## See
1312
@@ -25,7 +24,7 @@ At least one of `hero_image`, `title`, `actions`, or `body` must be provided.
2524optional actions : Button [];
2625```
2726
28- Defined in: [ block-kit/blocks.ts:170 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L170 )
27+ Defined in: [ block-kit/blocks.ts:169 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L169 )
2928
3029#### Description
3130
@@ -61,7 +60,7 @@ a message. If a message is updated, use a new `block_id`.
6160optional body : MrkdwnElement ;
6261```
6362
64- Defined in: [ block-kit/blocks.ts:166 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L166 )
63+ Defined in: [ block-kit/blocks.ts:165 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L165 )
6564
6665#### Description
6766
@@ -76,7 +75,7 @@ Maximum length for the text in this field is 200 characters.
7675optional hero_image : ImageElement ;
7776```
7877
79- Defined in: [ block-kit/blocks.ts:147 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L147 )
78+ Defined in: [ block-kit/blocks.ts:146 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L146 )
8079
8180#### Description
8281
@@ -90,7 +89,7 @@ A top banner image for the card in the form of an [ImageElement](../type-aliases
9089optional icon : ImageElement ;
9190```
9291
93- Defined in: [ block-kit/blocks.ts:151 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L151 )
92+ Defined in: [ block-kit/blocks.ts:150 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L150 )
9493
9594#### Description
9695
@@ -104,7 +103,7 @@ A small icon displayed next to the title and subtitle in the form of an [ImageEl
104103optional subtitle : MrkdwnElement ;
105104```
106105
107- Defined in: [ block-kit/blocks.ts:161 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L161 )
106+ Defined in: [ block-kit/blocks.ts:160 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L160 )
108107
109108#### Description
110109
@@ -119,7 +118,7 @@ Maximum length for the text in this field is 150 characters.
119118optional title : MrkdwnElement ;
120119```
121120
122- Defined in: [ block-kit/blocks.ts:156 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L156 )
121+ Defined in: [ block-kit/blocks.ts:155 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L155 )
123122
124123#### Description
125124
@@ -134,7 +133,7 @@ Maximum length for the text in this field is 150 characters.
134133type : " card" ;
135134```
136135
137- Defined in: [ block-kit/blocks.ts:143 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L143 )
136+ Defined in: [ block-kit/blocks.ts:142 ] ( https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L142 )
138137
139138#### Description
140139
0 commit comments