R/bulma-size.R

Defines functions bulma_fullwidth bulma_size

Documented in bulma_fullwidth bulma_size

#' @title
#' Bulma Size
#'
#' @description
#' Bulma has four main sizes (small, medium, large) and a default that can be
#' forced in component elements (normal).
#'
#' @family Bulma Modifiers
#' @name bulma_size
NULL

#' @describeIn bulma_size changes the size of the tag
#'
#' @param tag  (tag) to be modified
#' @param size (string) small, medium, large, or normal.
#'
#' @export
bulma_size <- function(tag, size = c("small", "medium", "large", "normal")) {
  bulma_is(tag, match_arg(size))
}

#' @describeIn bulma_size makes sure element spans the entire width
#' @export
bulma_fullwidth <- function(tag) {
  bulma_is(tag, "fullwidth")
}
tjpalanca/bulma.R documentation built on Dec. 23, 2021, 10:58 a.m.