context_block: Context Block

View source: R/layout.R

context_blockR Documentation

Context Block

Description

Displays message context, which can include both images and text.

Usage

context_block(elements, id = NULL)

Arguments

elements

An array of image elements and text objects. Maximum number of items is 10.

id

character, A string acting as a unique identifier for a block. Default: NULL

Details

Available in surfaces: Modals, Messages, Home tabs

Value

context_block class

See Also

Other layout: actions_block(), as.blocks(), divider_block(), file_block(), image_block(), input_block(), section_block(), wrap_blocks()

Examples

context_block(
  elements = wrap_blocks(
    image_element(
      url = 'https://image.freepik.com/free-photo/red-drawing-pin_1156-445.jpg',
      alt_text = 'images'
    ),
    block_text(
      text = 'Location: **Dogpatch**'
    )
  )
)

yonicd/slackblocks documentation built on March 2, 2023, 6:53 a.m.