euv-ui 0.37.4

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