euv-ui 0.46.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::*;

/// Cross-platform interactive button component styled exclusively via `ThemeTokens`.
#[derive(Clone, CustomDebug, Data, New, Props)]
pub struct EuvButton {
    /// Visible label string.
    pub(crate) label: String,
    /// Visual emphasis variant.
    #[new(skip)]
    #[get(type(copy))]
    #[prop(custom)]
    pub(crate) variant: EuvButtonVariant,
    /// Control size preset.
    #[new(skip)]
    #[get(type(copy))]
    #[prop(custom)]
    pub(crate) size: EuvButtonSize,
    /// Whether interaction is disabled.
    #[new(skip)]
    #[get(type(copy))]
    #[prop(custom)]
    pub(crate) disabled: bool,
    /// Whether the button expands (`flex_grow: 1.0`) to fill available space in flex rows.
    #[new(skip)]
    #[get(type(copy))]
    #[prop(custom)]
    pub(crate) fill: bool,
    /// Optional minimum logical width in pixels for auto-fill wrapping button rows.
    #[new(skip)]
    #[get(type(copy))]
    #[prop(custom)]
    pub(crate) min_width: Option<f32>,
    /// Active theme token bundle.
    #[get(type(copy))]
    pub(crate) tokens: ThemeTokens,
    /// Optional click event handler.
    #[new(skip)]
    #[debug(skip)]
    #[get(skip)]
    #[prop(custom)]
    pub(crate) on_click: Option<UiEventHandler>,
}