from shiny.ui.css import as_css_unit
0) as_css_unit(
'0'
Convert a value into a CSS unit.
value : None | CssUnit
A value to convert into a CSS unit.
: None | str
If 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.