Adjust the boder width of a tag element.
Arguments
- x
A tag element or .style pronoun.
- width
A number between
1
and5
.
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>