pub struct SkeletonProps {
pub attrs: Attributes,
}Expand description
A pulsing placeholder for content that is loading.
Set its dimensions through classes in attrs. Match the expected content’s shape to
reduce layout movement when it arrives. Attributes are forwarded to the <div>,
with extra classes added to its classes.
ⓘ
view! {
<div class="flex flex-col gap-2">
skeleton(attrs: attributes! { class="h-4 w-32" })
skeleton(attrs: attributes! { class="h-4 w-full" })
</div>
}Fields§
§attrs: AttributesImplementations§
Source§impl SkeletonProps
impl SkeletonProps
Sourcepub fn builder() -> SkeletonPropsBuilder
pub fn builder() -> SkeletonPropsBuilder
Returns a SkeletonPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkeletonProps
impl RefUnwindSafe for SkeletonProps
impl Send for SkeletonProps
impl Sync for SkeletonProps
impl Unpin for SkeletonProps
impl UnsafeUnpin for SkeletonProps
impl UnwindSafe for SkeletonProps
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