pub struct TextProps {
pub size: Size,
pub weight: FontWeight,
pub color: TextColor,
pub as_element: Option<String>,
pub class: Option<String>,
}Expand description
Properties for the styled Text component.
Fields§
§size: Size§weight: FontWeight§color: TextColor§as_element: Option<String>§class: Option<String>Trait Implementations§
impl StructuralPartialEq for TextProps
Auto Trait Implementations§
impl Freeze for TextProps
impl RefUnwindSafe for TextProps
impl Send for TextProps
impl Sync for TextProps
impl Unpin for TextProps
impl UnsafeUnpin for TextProps
impl UnwindSafe for TextProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more