Function label

Source
pub fn label() -> Label
Expand description

Draw text with label. Its a simplified version of crate::elements::paragraph.

See the available methods in Label.

fn app() -> impl IntoElement {
    label().text("Hello, world!").font_size(16.0)
}