text

Function text 

Source
pub fn text(text: impl IntoComputed<StyledStr>) -> Text
Expand description

Creates a new text component with the given content.

This is a convenience function equivalent to Text::new(text).

ยงTip

If you need formatted text, please use the text! macro instead.