Learn R Programming

bsTools (version 0.1.0)

bs_card: Create a Bootstrap card

Description

Create a Bootstrap card

Usage

bs_card(
  body,
  img_src = NULL,
  img_alt = NULL,
  div_class = "card",
  body_class = "card-body",
  img_class = "card-img-top"
)

Arguments

body

A string, the HTML to display in the body of the card.

img_src

A string, the path of an image to display with the card. Passed to "src" param of html5::img().

img_alt

A string, the alt attribute of an image to display with the card. Passed to "alt" param of html5::img().

div_class

A string, the class of the div wrapping the card content.

body_class

A string, the class of the div wrapping the card body.

img_class

A string, the class of the img tag if an image is to be displayed.

Value

A string of HTML.

Examples

Run this code
# NOT RUN {
bs_card(
body = "This is a card"
)
# }

Run the code above in your browser using DataLab