euv_ui/component/badge/view/struct.rs
1use crate::*;
2
3/// Props for the `euv_badge` component.
4///
5/// Defines the strongly-typed interface for the badge status indicator.
6#[derive(Clone, CustomDebug, Data, Default, New)]
7pub struct EuvBadgeProps {
8 /// Whether to render in outline style instead of solid fill.
9 #[get(type(copy))]
10 pub outline: bool,
11 /// The badge text content.
12 #[get(type(copy))]
13 pub text: &'static str,
14 /// Optional click event handler.
15 #[debug(skip)]
16 pub on_click: Option<Rc<dyn Fn(Event)>>,
17}