bs4Dash layout options
bs4dash_layout(
font_size_root = NULL,
sidebar_width = NULL,
sidebar_padding_x = NULL,
sidebar_padding_y = NULL,
sidebar_mini_width = NULL,
control_sidebar_width = NULL,
boxed_layout_max_width = NULL,
screen_header_collapse = NULL,
main_bg = NULL,
content_padding_x = NULL,
content_padding_y = NULL
)
Font size root.
Sidebar width.
Sidebar horizontal padding.
Sidebar vertical padding.
Width for mini sidebar.
Control sidebar width (the one on the right).
Max width used in boxed layout.
When to show the smaller logo.
Main background color.
Main content horizontal padding.
Main content vertical padding.
a list
that can be used in create_theme
.
# Sidebar width
bs4dash_layout(
sidebar_width = "400px"
)
#> $`sidebar-width`
#> [1] "400px"
#>
#> attr(,"class")
#> [1] "fresh_sass_vars" "bs4dash_vars" "list"
if (interactive()) {
library(shiny)
library(bs4Dash)
ui <- bs4DashPage(
title = "bs4Dash big sidebar",
navbar = bs4DashNavbar(),
sidebar = bs4DashSidebar(
title = "bs4Dash big sidebar",
skin = "light",
bs4SidebarMenu(
bs4SidebarMenuItem(
tabName = "tab1",
text = "UI components"
)
)
),
body = bs4DashBody(
use_theme(create_theme(
bs4dash_layout(
sidebar_width = "600px"
)
)),
bs4TabItems(
bs4TabItem(
tabName = "tab1",
"Content tab 1"
)
)
)
)
server <- function(input, output) {
}
shinyApp(ui, server)
}