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

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

Value

block_divider class

Details

Available in surfaces: Modals, Messages, Home tabs

See also

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' )
#> { #> "type": "image", #> "image_url": "http://placekitten.com/500/500", #> "alt_text": "An incredibly cute kitten.", #> "title": { #> "type": "plain_text", #> "text": "Please enjoy this photo of a kitten" #> }, #> "block_id": "image4" #> }