pub struct EuvSkeletonProps {
pub lines: usize,
pub width: &'static str,
pub height: &'static str,
pub rounded: Signal<bool>,
}Expand description
Props for the euv_skeleton component.
Defines the strongly-typed interface for a loading placeholder. The block is measured in whole lines rather than free-form children, so a caller can mirror the shape of the content it replaces without restyling it when the design tokens change.
Fields§
§lines: usizeThe number of placeholder lines to draw, clamped to
skeleton_line_count’s 1..=8 range.
width: &'static strThe inline width applied to every line, e.g. "60%" (falls back
to "100%" when empty or not a percentage).
height: &'static strThe inline height applied to every line, e.g. "24px" (falls back
to the stylesheet default when empty).
rounded: Signal<bool>Whether the lines are drawn with rounded corners instead of the
design system’s square border-radius: 0px default.
Implementations§
Source§impl EuvSkeletonProps
impl EuvSkeletonProps
pub fn get_lines(&self) -> &usize
pub fn get_mut_lines(&mut self) -> &mut usize
pub fn set_lines(&mut self, val: usize) -> &mut Self
pub fn get_width(&self) -> &&'static str
pub fn get_mut_width(&mut self) -> &mut &'static str
pub fn set_width(&mut self, val: &'static str) -> &mut Self
pub fn get_height(&self) -> &&'static str
pub fn get_mut_height(&mut self) -> &mut &'static str
pub fn set_height(&mut self, val: &'static str) -> &mut Self
pub fn get_rounded(&self) -> Signal<bool>
pub fn get_mut_rounded(&mut self) -> &mut Signal<bool>
pub fn set_rounded(&mut self, val: Signal<bool>) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvSkeletonProps
impl Clone for EuvSkeletonProps
Source§impl Debug for EuvSkeletonProps
impl Debug for EuvSkeletonProps
Auto Trait Implementations§
impl Freeze for EuvSkeletonProps
impl RefUnwindSafe for EuvSkeletonProps
impl Send for EuvSkeletonProps
impl Sync for EuvSkeletonProps
impl Unpin for EuvSkeletonProps
impl UnsafeUnpin for EuvSkeletonProps
impl UnwindSafe for EuvSkeletonProps
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