pub struct TextProps {
pub variant: Option<TextVariant>,
pub id: Option<AttributeValue>,
pub class: Option<AttributeValue>,
pub style: Option<AttributeValue>,
pub children: Children,
}
Expand description
Props for the Text
component.
Text Leptos Component
§Required Props
- children:
Children
§Optional Props
- variant:
impl Into<TextVariant>
- id:
impl Into<AttributeValue>
- class:
impl Into<AttributeValue>
- style:
impl Into<AttributeValue>
Fields§
§variant: Option<TextVariant>
§id: Option<AttributeValue>
§class: Option<AttributeValue>
§style: Option<AttributeValue>
§children: Children
Implementations§
Source§impl TextProps
impl TextProps
Sourcepub fn builder() -> TextPropsBuilder<((), (), (), (), ())>
pub fn builder() -> TextPropsBuilder<((), (), (), (), ())>
Create a builder for building TextProps
.
On the builder, call .variant(...)
(optional), .id(...)
(optional), .class(...)
(optional), .style(...)
(optional), .children(...)
to set the values of the fields.
Finally, call .build()
to create the instance of TextProps
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextProps
impl !RefUnwindSafe for TextProps
impl !Send for TextProps
impl !Sync for TextProps
impl Unpin 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