Description Usage Arguments See Also Examples
Use border()
to add or modify tag element borders.
1 |
tag |
A tag element. |
color |
One of " |
sides |
One or more of |
round |
One or more of |
Other design utilities:
active()
,
affix()
,
background()
,
display()
,
float()
,
font()
,
height()
,
padding()
,
scroll()
,
shadow()
,
width()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ### Change border color
div(
div() %>%
height(3) %>%
width(3) %>%
border("green"),
div() %>%
height(3) %>%
width(3) %>%
border(
color = "blue",
sides = c("left", "right")
)
)
### Round sides
sides <- c("top", "right", "bottom", "left", "circle", "all")
div(
lapply(
sides,
border,
tag = div() %>%
height(3) %>%
width(3),
color = "black"
)
) %>%
display("flex") %>%
flex(wrap = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.