image_block.Rd
A simple image block, designed to make those cat photos really pop.
image_block(image_url, alt_text, title = NULL, id = NULL)
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 |
block_divider class
Available in surfaces: Modals, Messages, Home tabs
Other layout:
actions_block()
,
as.blocks()
,
context_block()
,
divider_block()
,
file_block()
,
input_block()
,
section_block()
,
wrap_blocks()
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" #> }