R/VStack.R

Defines functions VStack

Documented in VStack

#' vstack
#'
#' A layout component for stacking vertically with gaps.
#' @export
#'
#' @param ... arguments to pass to the flexBox
#' @param sx sx elements to pass to the flexBox as defined in material ui
#' @family layout
#' @examples
#' component_example(VStack(tags$button("hi", "HI"), tags$button("hi", "hi")))
VStack <- function(..., sx = list()) {
    shiny.mui::Box(
        sx = c(sx, list(gap = "10px", display = "flex", flexDirection = "column")), ...
    )
}
QuartzSoftwareLLC/shiny.quartz documentation built on Aug. 29, 2023, 9:18 a.m.