pub struct SpinProps {
pub spinning: Option<bool>,
pub size: Option<SpinSize>,
pub tip: Option<String>,
pub class: Option<String>,
pub style: Option<String>,
pub fullscreen: bool,
pub children: Element,
}Expand description
Props for the Spin component (MVP subset).
Fields§
§spinning: Option<bool>Whether the spin indicator is active. Defaults to true.
size: Option<SpinSize>Visual size of the indicator.
tip: Option<String>Optional text shown under the indicator.
class: Option<String>Extra class for the root element.
style: Option<String>Inline style for the root element.
fullscreen: boolWhether to treat this as a fullscreen overlay. MVP only exposes a class hook, concrete layout can be refined later.
children: ElementOptional content wrapped by the spinner. When present, Spin will render children and, when spinning, show a semi-transparent mask with the indicator on top.
Implementations§
Source§impl SpinProps
impl SpinProps
Sourcepub fn builder() -> SpinPropsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> SpinPropsBuilder<((), (), (), (), (), (), ())>
Create a builder for building SpinProps.
On the builder, call .spinning(...)(optional), .size(...)(optional), .tip(...)(optional), .class(...)(optional), .style(...)(optional), .fullscreen(...)(optional), .children(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SpinProps.