argonSection: Create a Boostrap 4 section container

Description Usage Arguments Note Author(s) Examples

View source: R/argonSection.R

Description

Build an argon section container

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
argonSection(
  ...,
  size = NULL,
  status = "default",
  gradient = FALSE,
  separator = FALSE,
  separator_color = "secondary",
  shape = FALSE,
  cascade = FALSE
)

Arguments

...

Any UI element.

size

Section size. NULL by default.

status

Section status. See https://demos.creative-tim.com/argon-design-system/docs/foundation/colors.html.

gradient

Section gradient effect. FALSE by default.

separator

Section bottom separator. FALSE by default.

separator_color

Separator color. "secondary" by default. See https://demos.creative-tim.com/argon-design-system/docs/foundation/colors.html.

shape

Whether to include shape in the background. FALSE by default.

cascade

Whether to enable a cascade effect. FALSE by default.

Note

Do not use with the argonDash package. Only for argonR.

Author(s)

David Granjon, dgranjon@ymail.com

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
if (interactive()) {
 library(argonR)
 argonSection(
  size = "lg",
  status = "default",
  gradient = TRUE,
  separator = TRUE,
  separator_color = "white",
  shape = TRUE,
  argonColumn(
    argonRow(
      argonColumn(
        width = 6,
        argonH1(
          display = 3, 
          "ArgonR, HTML static template for R", 
          htmltools::span("completed with examples")
        ) %>% argonTextColor(color = "white"),
        argonLead(
          "Argon is a great free UI package based on Bootstrap 
          4 that includes the most important components and features"
        ) %>% argonTextColor(color = "white")
        ),
      argonColumn(
        width = 6,
        argonImage(
          src = "inst/images/imac.svg",
          floating = TRUE
        ) %>% argonPersp(side = "right")
        %>% argonBlur()
      )
      )
  )
 )
}

argonR documentation built on Dec. 1, 2019, 1:15 a.m.