tabler_card: Create a Tabler card element

Description Usage Arguments Value Examples

View source: R/tabler.R

Description

This is to be inserted in tabler_body.

Usage

1
2
3
4
5
6
7
8
tabler_card(
  ...,
  title = NULL,
  status = NULL,
  width = 6,
  stacked = FALSE,
  padding = NULL
)

Arguments

...

Card content.

title

Card title.

status

Card status color. Valid statuses are given at https://preview-dev.tabler.io/docs/colors.html.

width

Card width. Numeric between 1 and 12 according to the Bootstrap 4 grid system.

stacked

Apply a stacked effect to the card.

padding

Card padding. Leave NULL or "sm", "md" and "lg".

Value

A card tag.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
if (interactive()) {
 library(shiny)
 ui <- tabler_page(
   tabler_body(
     tabler_row(
       lapply(
        1:2,
        tabler_card,
        title = "Card",
        status = "success",
        "My amazing card"
       )
     )
   )
 )
 server <- function(input, output) {}
 shinyApp(ui, server)
}

DivadNojnarg/outstanding-shiny-ui-code documentation built on Nov. 2, 2021, 12:03 p.m.