The padding_*()
functions adjust a tag element's padding, the space between
the element's border and its content or child elements.
Usage
padding_all(x, ...)
padding_top(x, ...)
padding_right(x, ...)
padding_bottom(x, ...)
padding_left(x, ...)
padding_horizontal(x, ...)
padding_vertical(x, ...)
Arguments
- x
A tag element or .style pronoun.
- ...
A number specifying the amount of padding. One of,
0
1
2
3
4
5
Use name-value pairs to specify breakpoints.
Examples
library(htmltools)
div(
.style %>%
border_color(theme_primary()) %>%
padding_all(2),
"A padded element"
)
#> <div class="border-primary p-2">A padded element</div>