euv-ui 0.49.1

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
use super::*;

/// Elevated surface card container with optional title, subtitle, and child nodes.
#[derive(Clone, Data, Debug, New, Props)]
pub struct EuvCard {
    /// Optional card heading.
    pub(crate) title: String,
    /// Optional muted subtitle.
    #[new(skip)]
    #[prop(custom)]
    pub(crate) subtitle: String,
    /// Active theme tokens.
    #[get(type(copy))]
    pub(crate) tokens: ThemeTokens,
    /// Pre-mounted child nodes appended inside the card body.
    #[new(skip)]
    pub(crate) children: Vec<NodeId>,
    /// Optional style overrides merged onto the card surface (`style! { ... }`).
    #[new(skip)]
    #[get(type(copy))]
    pub(crate) style: Option<Style>,
}

/// Page header banner component displaying title and subtitle consistently across all pages.
#[derive(Clone, Data, Debug, New, Props)]
pub struct EuvHeader {
    /// Page title text.
    pub(crate) title: String,
    /// Page description subtitle.
    pub(crate) subtitle: String,
    /// Active theme tokens.
    #[get(type(copy))]
    pub(crate) tokens: ThemeTokens,
}

/// Compact KPI / telemetry metric card.
#[derive(Clone, Data, Debug, New, Props)]
pub struct EuvStatCard {
    /// Metric label.
    pub(crate) label: String,
    /// Primary formatted metric value.
    pub(crate) value: String,
    /// Supporting caption or delta text.
    pub(crate) caption: String,
    /// Active theme tokens.
    #[get(type(copy))]
    pub(crate) tokens: ThemeTokens,
}