Creates a minimal full-page HTML scaffold for Shiny applications that use
Web Awesome components. webawesomePage() attaches the package dependency
once at page level and temporarily suppresses duplicate wrapper-level
attachment while evaluating its children. This function serves an entirely
different role from the upstream component wa_page().
Arguments
- ...
UI content to place in the page body.
- title
Optional page title.
- lang
Optional HTML
langattribute for the page.- class
Optional CSS class string for the root HTML element. This is useful for page-level Web Awesome theme, palette, and brand classes such as
"wa-theme-default wa-palette-default wa-brand-blue"or"wa-palette-default". Whenclassincludes a recognized non-default theme class such as"wa-theme-awesome"or"wa-theme-shoelace",webawesomePage()also loads the matching bundled theme stylesheet automatically.- body_class
Optional CSS class string for the page body. This is useful for app-shell layout or body-level styling hooks that should stay separate from root HTML theme classes.
Details
This is a package-level Shiny helper that follows Shiny's page-helper model
(fluidPage(), etc.) for
dependency attachment and full-page scaffolding.
It is intentionally separate from the upstream wa-page component wrapper.
Examples
if (interactive()) {
webawesomePage(
title = "shiny.webawesome",
class = "wa-theme-default wa-palette-default wa-brand-blue",
wa_card("Hello from Web Awesome")
)
}