Description Usage Arguments Value Examples
View source: R/corazon_gradient.R
Display a linear gradient color within shiny elements
1 2 3 4 5 6 | corazon_gradient(
element = "body",
direction = "right",
colorName = "LIFE",
txtColor = "#F2F2F2"
)
|
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) |
A linear gradient color applied on a specific shiny element
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.