material_card: Create a card that will contain UI content

Description Usage Arguments Examples

Description

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

Usage

1
2
3
4
material_card(title, ..., size = "medium", depth = NULL,
  image = FALSE, src = NULL, activator = FALSE, tabs = FALSE,
  tabscontent = NULL, extra = NULL, color = NULL, hoverable = TRUE,
  footer = NULL)

Arguments

title

String. The title of the card.

...

The UI elements to place in the card.

size

Card size: "small", "medium", "large". "medium" by default.

depth

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

image

Whether to enable image in the card. FALSE by default.

src

Image path, if any.

activator

Whether to allow the card reveal. FALSE by default.

tabs

Whether to display tabs in the card. FALSE by default.

tabscontent

Tabs content, if any.

extra

Card reveal content if any.

color

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

hoverable

Whether to hover the card. TRUE by default.

footer

Footer content, if any.

Examples

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

DivadNojnarg/shinymaterialPlus documentation built on May 10, 2019, 9:28 a.m.