Skip to main content

@slack/types / CarouselBlock

Interface: CarouselBlock

Defined in: block-kit/blocks.ts:245

Description​

Displays related card blocks in a horizontally-scrolling container.

See​

Carousel block reference.

Extends​

Properties​

block_id?​

optional block_id?: string;

Defined in: block-kit/blocks.ts:50

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​

Block.block_id


elements​

elements: CardBlock[];

Defined in: block-kit/blocks.ts:253

Description​

An array of CardBlock elements. Minimum 1, maximum 10 cards.


type​

type: "carousel";

Defined in: block-kit/blocks.ts:249

Description​

The type of block. For a carousel block, type is always carousel.

Overrides​

Block.type