Lecture 24
College of Idaho
CSCI 2025 - Winter 2026
fluidPage()fluidPage().titlePanel()fluidPage() is titlePanel().sidebarLayout()sidebarPanel() (for inputs) and mainPanel() (for outputs).sidebarPanel() is typically placed on the left.sidebarLayout() positionsposition argument.position = "left" (default)position = "right"fluidRow()fluidRow() creates a row.column() creates columns within a row.fluidRow() and column() to create more complex layouts.sidebarLayout() inside a column().tabsetPanel() and navlistPanel()tabsetPanel()tabPanel().tabsetPanel() optionsid: Assign an ID to get the currently selected tab in the server.selected: Set the initially selected tab.type: Change the appearance of the tabs (e.g., “tabs”, “pills”).position: Place tabs on “top”, “bottom”, “left”, or “right”.navlistPanel()tabsetPanel().sidebarLayout.navbarPage()navbarPage() is the tool of choice.fluidPage() as the top-level UI function.tabPanel becomes a “page”.navbarPage()navbarMenu().navbarPage() optionstitle: The title of the app, shown in the navbar.id: To access the selected tab from the server.collapsible = TRUE: The navbar collapses on small screens.theme: To apply a custom theme.bslibbslib package makes it easy to customize Bootstrap themes.bs_theme() to create a theme and pass it to the theme argument of the page layout function.bslib offers an interactive theming tool.bs_theme_preview() on your UI to launch a special version of your app where you can tweak theme settings in real-time.bs_theme() allows you to customize many aspects of the theme.
bg, fg: Background and foreground colors.primary, secondary: Accent colors.base_font, heading_font, code_font: Fonts.bslib.