Card

Description

Create a card with a header, a body, and a footer.

Usage

bc_card(...)

bc_card_header(title, ...)

bc_card_body(...)

bc_card_footer(...)

bc_card_action(...)

Arguments

Argument Description
... Tag attributes and content. Pass data-size = "sm" to bc_card() for a denser card.
title String or tag. The card title, shown as a heading.

Value

An htmltools tag.

Details

Parts render in the order written. An htmltools::img() before bc_card_header() becomes a cover image.

Examples

bc_card(
  bc_card_header(
    "Production deploy",
    htmltools::p("v1.4.2, 3m 12s"),
    bc_card_action(bc_badge("passed"))
  ),
  bc_card_body(htmltools::p("All 128 checks green.")),
  bc_card_footer(htmltools::p("Deployed 2 minutes ago."))
)

Production deploy

v1.4.2, 3m 12s

passed

All 128 checks green.

Deployed 2 minutes ago.