| container | R Documentation |
Wraps child elements in a container with CSS Container Query support. Allows responsive styles based on the container's own dimensions rather than the viewport.
container(
name,
...,
conditions = list(),
type = "inline-size",
class = NULL,
.style = NULL
)
name |
Container name. Used as the CSS |
... |
Child UI elements. |
conditions |
List of |
type |
Container type: |
class |
Additional CSS classes for the container div. |
.style |
Additional inline CSS styles (as a string or
|
A tag object.
container(
name = "demo",
grid_item(shiny::div(class = "a", "A"), area = "a"),
grid_item(shiny::div(class = "b", "B"), area = "b"),
conditions = list(
condition(!!!grid(template_areas = list(c("a", "b")))),
condition(
query = "width < 600px",
!!!grid(template_areas = list(c("a"), c("b")))
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.