bs_img {bsTools} | R Documentation |
Learn more at https://getbootstrap.com/docs/5.1/content/images/.
bs_img(img_attr = c(src = "...", alt = "...", class = "img"), center = FALSE)
img_attr |
A named list or named vector, names are attribute names and values are attribute values. Passed to the attr parameter of html5::img. |
center |
TRUE/FALSE, if TRUE, wraps img tag in a div with class "text-center". |
A string of HTML.
bs_img(
img_attr = c(
"src" = "...",
"alt" = "...",
"class" = "img"
)
)