ui.css.as_css_padding

ui.css.as_css_padding(padding)

Convert a CSS unit or list of CSS units into a CSS padding value.

Parameters

padding : CssUnit | list[CssUnit] | None

A CSS unit or list of CSS units.

Returns

: str | None

A CSS padding value.

Examples

from shiny.ui.css import as_css_padding

as_css_padding([0, "1em"])
'0 1em'