Sigil

Label

The one text node.

source is a &str or String (static), a Signal<T: Display> (live), or a closure Fn() -> String (recomputed when the signals it reads change). .nowrap() keeps it on one line.

GUITUIRuns in the browsertext

Preview

Label, Default, light themeLabel, Default, dark theme

Usage example

fn label_demo() -> TextBuilder {    text("Labels and text share TextContent.").nowrap()}
fn label_demo() -> TextBuilder {  text("Labels and text share TextContent.").nowrap()}

API

NameSignaturePurpose
textfn text(source: impl Into<TextContent>) -> TextBuilderThe one text node. source is a &str or String (static), a Signal<T: Display> (live), or a closure Fn() -> String (recomputed when the signals it reads change). .nowrap() keeps it on one line.