card_group: Container for cards

Description Usage Arguments Examples

View source: R/card_group.R

Description

A layout container for grouping more than one card

Usage

1

Arguments

...

cards and other UI content

class

a string containing one or more css classes

Examples

 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"
          )
        )
      )
    )
  )
}

InControlofEffects/iceComponents documentation built on April 1, 2021, 5:51 a.m.