zng::text

Function paragraph_spacing

source
pub fn paragraph_spacing(
    child: impl UiNode,
    extra: impl IntoVar<Length>,
) -> impl UiNode
Expand description

P Extra spacing in-between paragraphs.

The default value is 1.em(). Note that the Text! widget does not implement this property, as raw text does not encode paragraph breaks, this property and context var exists to configure rich-text widgets, like the Markdown! widget.

Sets the PARAGRAPH_SPACING_VAR.