bs_figure {bsTools}R Documentation

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.

Value

A string of HTML.

Examples

bs_figure(
src = tempfile(),
caption = "This is an example"
)

[Package bsTools version 0.1.0 Index]