Description Usage Arguments Examples
A layout container for grouping more than one card
1 | card_group(..., class = NULL)
|
... |
cards and other UI content |
class |
a string containing one or more css classes |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | if (interactive()) {
library(shiny)
ui <- tagList(
iceComponents::use_iceComponents(),
iceComponents::container(
iceComponents::page(
tags$h2("Study Progress", style = "text-align: center;"),
iceComponents::card_group(
iceComponents::card(
inputId = "experiments",
text = as.character(
tagList(
tags$strong("200"),
"experiments performed"
)
),
icon_name = "beaker",
icon_type = "solid"
),
iceComponents::card(
inputId = "recruitment",
text = as.character(
tagList(
"We recruited",
tags$strong("62"),
"new participants"
)
),
icon_name = "user_add",
icon_type = "outline"
),
iceComponents::card(
inputId = "statisfaction",
text = as.character(
tagList(
tags$strong("98.9%"),
"study satisfaction rate!"
)
),
icon_name = "emoji_happy",
icon_type = "outline"
)
)
)
)
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.