polyhorn_ui/components/text.rs
1use crate::styles::TextStyle;
2
3/// Renders (rich) text to the screen.
4#[derive(Default)]
5pub struct Text {
6 /// Controls the appearance and layout of this text. Note that the
7 /// layout-related style properties are only honored if this text is
8 /// contained within another view. They are not honored if this text is
9 /// nested in another text.
10 pub style: TextStyle,
11}