Skip to contents

Adjust the boder width of a tag element.

Usage

border_width(x, width)

Arguments

x

A tag element or .style pronoun.

width

A number between 1 and 5.

Value

An object of the same type as x.

See also

Other border utilities: border_color()

Examples


library(htmltools)

div(
  .style %>%
    border_all() %>%
    border_width(3) %>%
    border_color(theme_primary())
)
#> <div class="border border-3 border-primary"></div>