View source: R/webawesomePage.R
| webawesomePage | R Documentation |
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().
webawesomePage(..., title = NULL, lang = NULL, class = NULL, body_class = NULL)
... |
UI content to place in the page body. |
title |
Optional page title. |
lang |
Optional HTML |
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 |
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. |
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.
An HTML page scaffold with the shiny.webawesome dependency attached.
if (interactive()) {
webawesomePage(
title = "shiny.webawesome",
class = "wa-theme-default wa-palette-default wa-brand-blue",
wa_card("Hello from Web Awesome")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.