euv_ui/component/loading/view/struct.rs
1use crate::*;
2
3/// Props for the `euv_loading` component.
4///
5/// Defines the strongly-typed interface for a loading indicator that can render
6/// inline or as an absolute overlay covering its parent container.
7#[derive(Clone, Data, Debug, Default, New)]
8pub struct EuvLoadingProps {
9 /// The loading title text displayed beside the spinner.
10 #[get(type(copy))]
11 pub title: &'static str,
12 /// The optional subtitle text displayed below the title (empty string hides it).
13 #[get(type(copy))]
14 pub subtitle: &'static str,
15 /// Whether to render as an absolute overlay instead of an inline flex row.
16 #[get(type(copy))]
17 pub overlay: bool,
18 /// The background color for overlay mode (empty string for transparent).
19 #[get(type(copy))]
20 pub background: &'static str,
21}