Description Usage Arguments Value Note Examples
View source: R/vars-bootstrap.R
Those variables can be used to customize inputs in Bootstrap and Bootswatch themes.
1 2 3 4 5 6 7 8 9 10 |
bg |
Background color. |
color |
Text color. |
border |
Border color. |
border_radius |
Border radius. |
color_placeholder |
Text color of placeholder. |
group_addon_bg |
Background color of addons. |
border_focus |
Color of border when focused. |
bg_disabled |
Background color for disabled input. |
a list
that can be used in create_theme
.
See default parameters for Bootstrap: https://getbootstrap.com/docs/3.4/customize/.
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 | # change border radius
bs_vars_input(
border_radius = "20px"
)
if (interactive()) {
library(shiny)
ui <- fluidPage(
use_theme(create_theme(
theme = "default",
bs_vars_input(
border_radius = "20px"
)
)),
tags$h2("Rounded corner for inputs"),
textInput("text", "Text:"),
selectInput("select", "Select:",
letters, selectize = FALSE)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.