bootstrapLib: Bootstrap libraries

View source: R/bootstrap.R

bootstrapLibR Documentation

Bootstrap libraries


This function defines a set of web dependencies necessary for using Bootstrap components in a web page.


bootstrapLib(theme = NULL)



One of the following:

  • NULL (the default), which implies a "stock" build of Bootstrap 3.

  • A bslib::bs_theme() object. This can be used to replace a stock build of Bootstrap 3 with a customized version of Bootstrap 3 or higher.

  • A character string pointing to an alternative Bootstrap stylesheet (normally a css file within the www directory, e.g. www/bootstrap.css).


It isn't necessary to call this function if you use bootstrapPage() or others which use bootstrapPage, such fluidPage(), navbarPage(), fillPage(), etc, because they already include the Bootstrap web dependencies.

shiny documentation built on Nov. 18, 2023, 1:08 a.m.