border: Border colors

View source: R/design-border.R

borderR Documentation

Border colors

Description

Use border() to add or modify tag element borders.

Usage

border(x, color = NULL, sides = "all", round = NULL)

Arguments

x

A tag element or .style pronoun.

color

One of "primary", "secondary", "success", "info", "warning", "danger", "light" or "dark" specifying the border color of the tag element, defaults to NULL.

sides

One or more of "top", "right", "bottom", "left" or "all" or "none" specifying which sides to add a border to, defaults to "all".

round

One or more of "top", "right", "bottom", "left", "circle", "all", or "none" specifying how to round the border(s) of a tag element, defaults to NULL, in which case the argument is ignored.

Details

Cards

Card borders and font colors.

card(
  .style %>% 
    border("primary") %>% 
    font("primary"),
  header = "Primary",
  p("Cras justo odio, dapibus ac facilisis in, egestas eget quam."),
  p("Etiam porta sem malesuada magna mollis euismod.")
)
Primary

Cras justo odio, dapibus ac facilisis in, egestas eget quam.

Etiam porta sem malesuada magna mollis euismod.

See Also

Other design utilities: active(), affix(), background(), display(), flex(), float(), font(), height(), margin(), padding(), scroll(), shadow(), width()


nteetor/dull documentation built on June 10, 2022, 11:30 a.m.