mj_image: Image

Description Usage Arguments See Also Examples

View source: R/icon.R

Description

Displays a responsive image in your email. It is similar to the HTML <img/> tag. Note that if no width is provided, the image will use the parent column width.

Usage

1
mj_image(src, ...)

Arguments

src

image source.

...

Unnamed items that comprise this list of MJML tags.

See Also

https://mjml.io/documentation/#mjml-image

Examples

1
2
3
4
5
6
mj_ml(
  mj_body(
    mj_image(paste0("https://media.vanityfair.com/photos/",
                    "54cbf3da998d4de83ba3602a/master/w_960,c_limit/image.jpg"))
  )
)

JohnCoene/mjml documentation built on June 21, 2020, 11:42 a.m.