Skip to main content

euv_ui/component/typography/view/
struct.rs

1use super::*;
2
3/// Props for the [`euv_text`] component.
4///
5/// Defines the strongly-typed interface for a run of text: the string
6/// itself and the typographic role it plays.
7#[derive(Clone, CustomDebug, Default)]
8pub struct EuvTextProps {
9    /// The text to render.
10    pub text: &'static str,
11    /// The typographic role the text plays.
12    pub variant: EuvTextVariant,
13}