image_block: Image Block

View source: R/layout.R

image_blockR Documentation

Image Block

Description

A simple image block, designed to make those cat photos really pop.

Usage

image_block(image_url, alt_text, title = NULL, id = NULL)

Arguments

image_url

character, The URL of the image to be displayed.

alt_text

character, A plain-text summary of the image. This should not contain any markup.

title

character, an optional title for the image. Default: NULL

id

character, unique identifier for a block. Default: NULL

Details

Available in surfaces: Modals, Messages, Home tabs

Value

block_divider class

See Also

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

Examples

image_block(
 image_url = 'http://placekitten.com/500/500',
 alt_text = 'An incredibly cute kitten.',
 title = 'Please enjoy this photo of a kitten',
 id = 'image4'
)

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