fresh (version 0.1.0)

bs_vars_input: Bootstrap CSS input variables

Description

Those variables can be used to customize inputs in Bootstrap and Bootswatch themes.

Usage

bs_vars_input(bg = NULL, color = NULL, border = NULL,
  border_radius = NULL, color_placeholder = NULL,
  group_addon_bg = NULL, border_focus = NULL)

Arguments

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.

Value

a list that can be used in create_theme.

Examples

Run this code
# NOT RUN {
# 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)
}
# }

Run the code above in your browser using DataLab