wa_container: Construct a shiny.webawesome container

View source: R/wa_container.R

wa_containerR Documentation

Construct a shiny.webawesome container

Description

Creates a convenience ⁠<div>⁠ container for layouts and utility-class usage within the shiny.webawesome package API. wa_container() is complementary to htmltools::tags$div() and is not a wrapper for an upstream Web Awesome component.

Usage

wa_container(..., id = NULL, class = NULL, style = NULL)

Arguments

...

UI children and additional HTML attributes for the container.

id

Optional DOM id attribute.

class

Optional CSS class string.

style

Optional inline CSS style string.

Details

The helper attaches the shiny.webawesome dependency so Web Awesome utility classes can be used even when no generated component wrappers appear in the same UI subtree.

Value

A ⁠<div>⁠ tag with the shiny.webawesome dependency attached.

Examples

container <- wa_container(
  class = "wa-stack",
  wa_card("First card"),
  wa_card("Second card")
)

shiny.webawesome documentation built on April 22, 2026, 1:09 a.m.