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::*;

/// 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 style overrides merged onto the resolved button style (`style! { ... }`).
    #[new(skip)]
    #[get(type(copy))]
    pub(crate) style: Option<Style>,
    /// 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>,
}