Skip to main content

page_bare

page_bare(*args, title=None, lang='en', **kwargs)

Create a bare HTML page with only Shiny dependencies.

This is the escape hatch for fully custom setups that don’t need the shinyreact JS/CSS. It wraps shiny.ui.page_bootstrap() with minimal defaults.

Pass :class:~htmltools.HTMLDependency objects as positional arguments to include them in the page — Shiny automatically hoists them to <head>.

With no theme=, the page carries no Bootstrap: only jQuery, Shiny’s own JS/CSS, and a width=device-width viewport meta tag. Shiny’s own default would attach Bootstrap, and in the ui.tsx pattern the client owns styling. Pass a theme= — e.g. shiny.ui.Theme() — to get Bootstrap back; then everything is a plain passthrough to :func:shiny.ui.page_bootstrap.

Args: *args: Child tags or HTMLDependency objects to include in the page. title: Page title. lang: HTML lang attribute. **kwargs: Forwarded to :func:shiny.ui.page_bootstrap — its own theme=, or tag attributes for the page. Deliberately not surfaced as named parameters: in the ui.tsx pattern the client owns styling, so Bootstrap theming is a passthrough, not part of this API.