ui.page_bootstrap

ui.page_bootstrap(*args, title=None, lang=None, theme=None, **kwargs)

Create a Bootstrap UI page container.

Parameters

*args: TagChild | TagAttrs = ()

UI elements.

title: Optional[str] = None

The browser window title (defaults to the host URL of the page). Can also be set as a side effect via panel_title.

lang: Optional[str] = None

ISO 639-1 language code for the HTML page, such as "en" or "ko". This will be used as the lang in the <html> tag, as in <html lang="en">. The default, None, results in an empty string.

theme: Optional[str | Path | Theme | ThemeProvider] = None

A custom Shiny theme created using the Theme class, or a path to a local or online CSS file that will replace the Bootstrap CSS bundled by default with a Shiny app. This file should be a complete bootstrap.css or bootstrap.min.css file.

For advanced uses, you can also pass a Tagifiable object. In this case, Shiny will suppress the default Bootstrap CSS.

To modify the theme of an app without replacing the Bootstrap CSS entirely, use include_css to add custom CSS.

**kwargs: TagAttrValue = {}

Attributes on the the <body> tag.

Returns

Type Description
Tag A UI element.

See Also