| grid | R Documentation |
Returns a named list of CSS grid properties suitable for splicing into
condition via the !!! operator.
grid(
template_areas = NULL,
template_rows = NULL,
template_columns = NULL,
gap = NULL,
align_items = NULL,
justify_items = NULL,
align_content = NULL,
justify_content = NULL,
auto_columns = NULL,
auto_rows = NULL,
auto_fill = FALSE,
...
)
template_areas |
List of character vectors defining grid template areas.
Each vector represents a row: |
template_rows |
CSS value for |
template_columns |
CSS value for |
gap |
CSS value for |
align_items |
CSS value for |
justify_items |
CSS value for |
align_content |
CSS value for |
justify_content |
CSS value for |
auto_columns |
CSS value for column sizing. When |
auto_rows |
CSS value for row sizing. When |
auto_fill |
Logical. When |
... |
Additional named CSS properties to include. |
A named list of CSS properties.
# Two-column layout
grid(template_areas = list(c("sidebar", "main")))
# Responsive auto-fill columns
grid(auto_fill = TRUE, auto_columns = "minmax(200px, 1fr)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.