Skip to main content

euv_ui/component/alert/view/
enum.rs

1/// The alert variant determining the visual style.
2///
3/// The registry publishes two variants — the quiet default and the
4/// destructive one — and the design system keeps its own success and
5/// error treatments beside them.
6#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
7pub enum AlertVariant {
8    /// A success alert with green styling.
9    #[default]
10    Success,
11    /// An error alert with red styling.
12    Error,
13    /// The registry's quiet alert on the background surface.
14    Default,
15    /// The registry's destructive alert.
16    Destructive,
17}