ui.css.as_css_padding(padding)
Convert a CSS unit or list of CSS units into a CSS padding value.
padding : CssUnit | list[CssUnit] | None
list
A CSS unit or list of CSS units.
: str | None
A CSS padding value.
from shiny.ui.css import as_css_padding as_css_padding([0, "1em"])
'0 1em'