Skip to main content

text

Function text 

Source
pub fn text(content: impl Into<String>) -> TextView
Expand description

Create a text view rendering content with default styling (16px). Its glyph color defaults to the active theme’s on_surface role, falling back to black when no theme is set; an explicit TextView::color overrides both.