Skip to main content

euv_ui/component/alert/view/
struct.rs

1use crate::*;
2
3/// Props for the `euv_alert` component.
4///
5/// Defines the strongly-typed interface for an alert with variant styling.
6#[derive(Clone, CustomDebug, Data, Default, New)]
7pub struct EuvAlertProps {
8    /// The visual variant of the alert (success or error).
9    #[get(type(copy))]
10    pub variant: AlertVariant,
11}