pub struct BoxProps {
pub classes: Option<Signal<String>>,
pub test_attr: Option<TestAttr>,
pub children: Children,
}Expand description
Props for the [Box] component.
A white box to contain other elements.
§Required Props
- children:
Children- Child content to render inside the box
§Optional Props
- classes:
impl Into<Signal<String>>- Additional CSS classes to append to the base “box” class
- test_attr:
impl Into<TestAttr>-
Optional test attribute (renders as data-* attribute) on the root
.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>>§Additional CSS classes to append to the base “box” class
test_attr: Option<TestAttr>Optional test attribute (renders as data-* attribute) on the root
.§When provided as a &str or String, this becomes
data-testid="value". You can also pass a fullTestAttrto override the attribute key.children: ChildrenChild content to render inside the box
Implementations§
Trait Implementations§
Auto Trait Implementations§
§ impl Freeze for BoxProps
§ impl !RefUnwindSafe for BoxProps
§ impl Send for BoxProps
§ impl !Sync for BoxProps
§ impl Unpin for BoxProps
§ impl UnsafeUnpin for BoxProps
§ impl !UnwindSafe for BoxProps
Blanket Implementations§
Source§ impl<T> BorrowMut<T> for T
where T: ?Sized,Source§ fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§ impl<T> IntoEither for T
Source§ fn into_either(self, into_left: bool) -> Either<Self, Self>
Convertsselfinto aLeftvariant ofEither<Self, Self>ifinto_leftistrue. Convertsselfinto aRightvariant ofEither<Self, Self>otherwise. Read moreSource§ fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Convertsselfinto aLeftvariant ofEither<Self, Self>ifinto_left(&self)returnstrue. Convertsselfinto aRightvariant ofEither<Self, Self>otherwise. Read moreSource§ impl<T> SerializableKey for T
Source§ impl<T> StorageAccess<T> for T
Source§ fn as_borrowed(&self) -> &T
Borrows the value.Source§ fn into_taken(self) -> T
Takes the value.Source§ impl<S, T> Upcast<T> for S
-