padding_all: Padding

View source: R/padding-all.R

padding_allR Documentation

Padding

Description

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.

Value

An object of the same type as x.

Examples


library(htmltools)

div(
  .style %>%
    border_color(theme_primary()) %>%
    padding_all(2),
  "A padded element"
)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.