Skip to contents

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.

Value

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

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.

Examples

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