{
  "name": "bslib functions mapped to the job they do",
  "description": "Compiled from the bslib dashboards and theming articles and the CRAN page: each row names a bslib function, its level in the toolkit, the job it does and the main arguments the documentation shows for it.",
  "page": "https://casrai.org/guides/bslib",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:04:32Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Level",
      "unit": "",
      "description": ""
    },
    {
      "name": "Job (as documented)",
      "unit": "",
      "description": ""
    },
    {
      "name": "Main arguments shown in the docs",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "page_sidebar()",
      "Level": "Page",
      "Job (as documented)": "Dashboard page with a title, a sidebar and main content",
      "Main arguments shown in the docs": "title, sidebar, fillable, fillable_mobile, theme"
    },
    {
      "Function": "page_navbar()",
      "Level": "Page",
      "Job (as documented)": "Multi-page layout with a navigation bar; a sidebar given here appears on every page",
      "Main arguments shown in the docs": "title, sidebar, fillable"
    },
    {
      "Function": "nav_panel()",
      "Level": "Navigation",
      "Job (as documented)": "Supplies the title and content of one page in a navbar",
      "Main arguments shown in the docs": "title, content"
    },
    {
      "Function": "sidebar()",
      "Level": "Component",
      "Job (as documented)": "Sidebar with its own title, styling and position; collapsed on mobile by default",
      "Main arguments shown in the docs": "title, open, position"
    },
    {
      "Function": "layout_sidebar()",
      "Level": "Component",
      "Job (as documented)": "Sidebar layout for one component, usable inside a card",
      "Main arguments shown in the docs": "sidebar, position"
    },
    {
      "Function": "card()",
      "Level": "Component",
      "Job (as documented)": "Container for an output; can expand to full screen",
      "Main arguments shown in the docs": "full_screen, height, min_height, max_height"
    },
    {
      "Function": "card_header()",
      "Level": "Component",
      "Job (as documented)": "Header inside a card",
      "Main arguments shown in the docs": "text"
    },
    {
      "Function": "value_box()",
      "Level": "Component",
      "Job (as documented)": "Card that highlights one value with a title and a showcase placeholder",
      "Main arguments shown in the docs": "title, value, showcase"
    },
    {
      "Function": "layout_columns()",
      "Level": "Layout",
      "Job (as documented)": "Multi-column grid with widths out of 12; even split without col_widths",
      "Main arguments shown in the docs": "col_widths, row_heights"
    },
    {
      "Function": "bs_theme()",
      "Level": "Theming",
      "Job (as documented)": "Creates a theme: Bootswatch, main colours, fonts and Sass variables",
      "Main arguments shown in the docs": "bootswatch, bg, fg, primary, base_font, code_font"
    },
    {
      "Function": "bs_add_variables()",
      "Level": "Theming",
      "Job (as documented)": "Adds Sass variables to a theme; .where = 'declarations' places them after Bootstrap",
      "Main arguments shown in the docs": "variables, .where"
    },
    {
      "Function": "bs_add_rules()",
      "Level": "Theming",
      "Job (as documented)": "Appends CSS or Sass rules or files to a theme",
      "Main arguments shown in the docs": "rules"
    },
    {
      "Function": "bs_themer()",
      "Level": "Theming",
      "Job (as documented)": "Live theming widget; called inside the server function",
      "Main arguments shown in the docs": "none"
    },
    {
      "Function": "bs_theme_preview()",
      "Level": "Theming",
      "Job (as documented)": "Launches a demo Shiny app with the theming widget overlaid",
      "Main arguments shown in the docs": "none"
    }
  ],
  "sources": [
    {
      "title": "bslib article: Dashboards",
      "url": "https://rstudio.github.io/bslib/articles/dashboards/index.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "bslib article: Theming",
      "url": "https://rstudio.github.io/bslib/articles/theming/index.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "bslib on CRAN",
      "url": "https://cran.r-project.org/web/packages/bslib/index.html",
      "accessed": "2026-11-14"
    }
  ]
}