Components / Text
Text
Text in the theme's type scale, with truncation.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn text() -> impl View {
VStack::new((
Text::new("Display").style(TextStyle::Display),
Text::new("Headline").style(TextStyle::Headline),
Text::new("Muted body text").foreground(Semantic::InkMuted),
))
.spacing(8.0)
}