bs_figure: Create HTML figure tag configured with Bootstrap classes
Description
Create HTML figure tag configured with Bootstrap classes
Usage
bs_figure(
src,
alt = NULL,
caption = NULL,
figure_class = "figure",
img_class = "figure-img img-fluid",
figcaption_class = "figure-caption"
)
Arguments
src
A string, the value to pass to the "src" param of html5::img().
alt
A string, the value to pass to the "alt" html5::img().
caption
A string, gets passed to html5::figcaption().
figure_class
A string, the class of the figure tag.
img_class
A string, the class of the img tag.
figcaption_class
A string, the class of the figcaption tag.
Examples
Run this code# NOT RUN {
bs_figure(
src = tempfile(),
caption = "This is an example"
)
# }
Run the code above in your browser using DataLab