from shiny.ui.css import as_css_unit
as_css_unit(0)'0'
Convert a value into a CSS unit.
value : None | CssUnitA value to convert into a CSS unit.
: None | strIf the value is None, then None. If the value is 0, then "0". If the value is numeric, then a formatted pixel value. Otherwise, the value as-is.