padding: Padding

View source: R/design-spacing.R

paddingR Documentation

Padding

Description

The padding utility changes the inner spacing of a tag element. The padding of a tag element is the space between the tag element's border and its content or child elements. All arguments default to NULL, in which case they are ignored.

Usage

padding(x, all = NULL, top = NULL, right = NULL, bottom = NULL, left = NULL)

Arguments

x

A tag element or .style pronoun.

all, top, right, bottom, left

A responsive argument. One of 0:5 or "auto" specifying padding for one or more sides of the tag element. 0 removes all inner space and 5 adds the most space.

Examples


div() %>% padding(2)
# ->
div() %>% cascadess::padding_all(2)


nteetor/dull documentation built on Nov. 7, 2024, 2:11 p.m.