bs_card {bsTools}R Documentation

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

bs_card(
body = "This is a card"
)

[Package bsTools version 0.1.0 Index]