bs4dash buttons variables
bs4dash_button(
default_background_color = NULL,
default_color = NULL,
default_border_color = NULL,
padding_y_xs = NULL,
padding_x_xs = NULL,
line_height_xs = NULL,
font_size_xs = NULL,
border_radius_xs = NULL
)
Default background color.
Default color.
Default border color.
Vertical padding for extra small button.
Horizontal padding for extra small button.
Line height for extra small button.
Font size for extra small button.
Border radius for extra small button.
a list
that can be used in create_theme
.
# This will affect default actionButton()
bs4dash_button(
default_background_color = "#FF0000",
default_color = "#3ADF00",
default_border_color = "#3ADF00"
)
#> $`button-default-background-color`
#> [1] "#FF0000"
#>
#> $`button-default-color`
#> [1] "#3ADF00"
#>
#> $`button-default-border-color`
#> [1] "#3ADF00"
#>
#> attr(,"class")
#> [1] "fresh_sass_vars" "bs4dash_vars" "list"
if (interactive()) {
library(shiny)
library(bs4Dash)
ui <- bs4DashPage(
title = "bs4Dash Custom Colors",
navbar = bs4DashNavbar(),
sidebar = bs4DashSidebar(),
body = bs4DashBody(
use_theme(create_theme(
bs4dash_button(
default_background_color = "#FF0000",
default_color = "#3ADF00",
default_border_color = "#3ADF00"
)
)),
actionButton(
"btn",
"An action button",
icon("rocket")
)
)
)
server <- function(input, output) {
}
shinyApp(ui, server)
}