corazon_gradient: Display a linear gradient color within shiny elements

Description Usage Arguments Value Examples

View source: R/corazon_gradient.R

Description

Display a linear gradient color within shiny elements

Usage

1
2
3
4
5
6
corazon_gradient(
  element = "body",
  direction = "right",
  colorName = "LIFE",
  txtColor = "#F2F2F2"
)

Arguments

element

the shiny element that will incorporate the gradient color ? Defaults to "body"

direction

the direction of the gradient, between "right", "left", "bottom", "top". Defaults to "right"

colorName

the name of the gradient color to apply. see https://www.colorffy.com/gradients/catalog

txtColor

the text color. Default to "#F2F2F2" (white)

Value

A linear gradient color applied on a specific shiny element

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
if(interactive()){

ui <- fluidPage(


corazon_gradient(txtColor = "blue"),


h1("This is a Title"),

)

server <- function(input, output) {

}

# Run the application


shinyApp(ui = ui, server = server)

}

corazon documentation built on July 1, 2020, 5:54 p.m.