pub struct MediaLeftProps {
pub classes: Option<Signal<String>>,
pub tag: Option<Signal<String>>,
pub test_attr: Option<TestAttr>,
pub children: Children,
}Expand description
Props for the MediaLeft component.
Elements to be grouped to the left of the media container.
§Required Props
- children:
Children
§Optional Props
- classes:
impl Into<Signal<String>> - tag:
impl Into<Signal<String>>- The HTML tag to use for this component (div, article, section, nav, p, span)
- test_attr:
impl Into<TestAttr>-
Optional test attribute (renders as data-* attribute)
When provided as a &str or String, this becomes
data-testid="value". You can also pass a fullTestAttrto override the attribute key.
-
Fields§
§classes: Option<Signal<String>>§tag: Option<Signal<String>>The HTML tag to use for this component (div, article, section, nav, p, span)
test_attr: Option<TestAttr>Optional test attribute (renders as data-* attribute)
When provided as a &str or String, this becomes data-testid="value".
You can also pass a full TestAttr to override the attribute key.
children: ChildrenImplementations§
Source§impl MediaLeftProps
impl MediaLeftProps
Sourcepub fn builder() -> MediaLeftPropsBuilder<((), (), (), ())>
pub fn builder() -> MediaLeftPropsBuilder<((), (), (), ())>
Create a builder for building MediaLeftProps.
On the builder, call .classes(...)(optional), .tag(...)(optional), .test_attr(...)(optional), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of MediaLeftProps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaLeftProps
impl !RefUnwindSafe for MediaLeftProps
impl Send for MediaLeftProps
impl !Sync for MediaLeftProps
impl Unpin for MediaLeftProps
impl UnsafeUnpin for MediaLeftProps
impl !UnwindSafe for MediaLeftProps
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more