border_color | R Documentation |
The border_color()
and border_subtle()
functions adjust the border
color of a tag element.
border_color(x, color)
border_subtle(x, color)
x |
A tag element or .style pronoun. |
color |
A character string specifying a color. One of,
|
An object of the same type as x
.
Other border utilities:
border_width()
library(htmltools)
div(
.style %>%
border_color(theme_primary())
)
div(
.style %>%
background_subtle(theme_danger()) %>%
border_subtle(theme_danger()) %>%
text_emphasis(theme_danger()),
"Danger theme with some emphasis"
)
div(
.style %>%
background_subtle(theme_light()) %>%
text_emphasis(theme_light()) %>%
border_subtle(theme_light())
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.