pub fn Text(_: TextProps) -> ElementExpand description
type_role alone takes the design system’s size, weight, line height and letter
spacing. Each override replaces one axis and costs one SetProp, so changing the font
size does not resend the rest of the text’s styling.
§Props
For details, see the props struct definition.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolspans:crate::spans::TextSpansRuns of different treatment inside [text]: a bold phrase, a link, a piece of code. Left out, the widget travels exactly as it did before runs existed.
text:Stringtype_role:Option<TypeRole>font_size:Option<f32>font_weight:Option<u16>line_height:Option<f32>letter_spacing:Option<f32>color:Option<Paint>text_align:Option<TextAlign>max_lines:Option<u32>overflow:Option<TextOverflow>