euv-ui 0.9.1

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

/// Props for the `euv_badge` component.
///
/// Defines the strongly-typed interface for the badge status indicator.
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvBadgeProps {
    /// Whether to render in outline style instead of solid fill.
    #[get(type(copy))]
    pub outline: bool,
    /// The badge text content.
    #[get(type(copy))]
    pub text: &'static str,
    /// Optional click event handler.
    #[debug(skip)]
    pub on_click: Option<Rc<dyn Fn(Event)>>,
}