powered by
Create HTML img tag configured with Bootstrap classes
bs_img( src, alt = NULL, fluid = TRUE, thumbnail = FALSE, rounded = FALSE, float_start = FALSE, float_end = FALSE, center = FALSE, custom_class = NULL )
A string, the value to pass to the "src" param of html5::img().
A string, the value to pass to the "alt" param of html5::img().
TRUE/FALSE, if TRUE, adds the class "img-fluid".
TRUE/FALSE, if TRUE (and fluid is FALSE), adds the class "img-thumbnail".
TRUE/FALSE, if TRUE, adds the class "rounded".
TRUE/FALSE, if TRUE, adds the class "float-start".
TRUE/FALSE, if TRUE (and float_start is FALSE), adds the class "float-end".
TRUE/FALSE, if TRUE, wraps img tag in a div with class "text-center".
A string, a custom class to append to the img tag.
A string of HTML.
# NOT RUN { bs_img( src = tempfile() ) # }
Run the code above in your browser using DataLab