material_card: Create a card that will contain UI content

Description Usage Arguments Examples

View source: R/shiny-material-card.R

Description

UI content can be placed in cards to organize items on a page.

Usage

1
material_card(title, ..., depth = NULL, color = NULL, divider = FALSE)

Arguments

title

String. The title of the card

...

The UI elements to place in the card

depth

Integer. The amount of depth of the card. The value should be between 0 and 5. Leave empty for the default depth.

color

String. The color of the card background. Leave empty for the default color. Visit https://materializecss.com/color.html for a list of available colors.

divider

logical. Should there be a divider element between card title and card content?

Examples

1
2
3
4
5
material_card(
  title = "Example Card",
  depth = 5,
  shiny::tags$h5("Card Content")
)

Example output

<div class="card z-depth-5">
  <div class="card-content">
    <span class="card-title">Example Card</span>
    <h5>Card Content</h5>
  </div>
</div>

shinymaterial documentation built on Sept. 1, 2020, 1:07 a.m.