pub struct SkeletonProps {
pub shape: SkeletonShape,
pub animation: SkeletonAnimation,
pub width: SkeletonSize,
pub height: SkeletonSize,
pub aria_label: Option<String>,
pub aria_labelledby: Option<String>,
pub aria_hidden: Option<bool>,
pub role: Option<String>,
pub class: Option<String>,
pub attributes: Vec<Attribute>,
}Expand description
Props for Skeleton.
Fields§
§shape: SkeletonShapeShape.
animation: SkeletonAnimationLoading animation.
width: SkeletonSizeWidth, such as 120, "60%", or "12rem".
height: SkeletonSizeHeight, such as 48 or "0.75rem".
aria_label: Option<String>Accessible name. A named skeleton becomes a status region.
aria_labelledby: Option<String>Id of the element that names the skeleton.
Overrides the computed aria-hidden.
role: Option<String>Overrides the computed role.
class: Option<String>Extra classes appended after the Lumen classes.
attributes: Vec<Attribute>Any other <div> or global attribute.
Implementations§
Source§impl SkeletonProps
impl SkeletonProps
Sourcepub fn builder() -> SkeletonPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> SkeletonPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building SkeletonProps.
On the builder, call .shape(...)(optional), .animation(...)(optional), .width(...)(optional), .height(...)(optional), .aria_label(...)(optional), .aria_labelledby(...)(optional), .aria_hidden(...)(optional), .role(...)(optional), .class(...)(optional), .attributes(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SkeletonProps.
Trait Implementations§
Source§impl Clone for SkeletonProps
impl Clone for SkeletonProps
Source§impl PartialEq for SkeletonProps
impl PartialEq for SkeletonProps
Source§impl Properties for SkeletonPropswhere
Self: Clone,
impl Properties for SkeletonPropswhere
Self: Clone,
Source§type Builder = SkeletonPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
type Builder = SkeletonPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
Source§fn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Source§fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
impl StructuralPartialEq for SkeletonProps
Auto Trait Implementations§
impl !RefUnwindSafe for SkeletonProps
impl !Send for SkeletonProps
impl !Sync for SkeletonProps
impl !UnwindSafe for SkeletonProps
impl Forget for SkeletonProps
impl Freeze for SkeletonProps
impl Move for SkeletonProps
impl Unpin for SkeletonProps
impl UnsafeUnpin for SkeletonPropswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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