R/bulma-block.R

Defines functions bulma_block

Documented in bulma_block

#' @title
#' Bulma Block
#'
#' @description
#' Basic spacer block. The `block` element is a simple spacer tool. It allows
#' sibling HTML elements to have a consistent margin between them. This is
#' applicable to nearly all elements and components, but this basic container
#' can be used to create custom containers.
#'
#' [Block](https://bulma.io/documentation/elements/block/)
#'
#' @param ... (tag) content
#' @param tag (fn) default HTML container
#'
#' @family Bulma Elements
#' @export
bulma_block <- function(..., tag = tags$div) {

  tag(
    class = "block",
    ...
  ) %>%
    add_class("bulma_block")

}
tjpalanca/bulma.R documentation built on Dec. 23, 2021, 10:58 a.m.