Skip to main content

Text

Function Text 

Source
pub fn Text(_: TextProps) -> Element
Expand 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.