corazon_gradient {corazon} | R Documentation |
Display a linear gradient color within shiny elements
Description
Display a linear gradient color within shiny elements
Usage
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
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)
}
[Package corazon version 0.1.0 Index]