R/utils_helpers.R

Defines functions material_card

Documented in material_card

#' helpers 
#'
#' @description utils functions

#' material_card
#' @description provides a card for major UI elements 
material_card <- function(..., header = NULL, bgcolor = "#191a1a") {
div(
  class = "card",
  header, 
  div(class = "card-content", ..., style = sprintf("background-color: %s", bgcolor))
)
}
ethantenison/TexasWater documentation built on Oct. 22, 2022, 10:36 p.m.