euv_core/vdom/attribute/enum.rs
1use crate::*;
2
3/// Represents the value of an HTML attribute.
4///
5/// Attributes can be static text, reactive signals, event handlers, dynamic expressions,
6/// or CSS class references.
7#[derive(Clone, Debug)]
8pub enum AttributeValue {
9 /// A static string value.
10 Text(String),
11 /// A dynamic signal-backed value.
12 Signal(Signal<String>),
13 /// An event handler callback.
14 Event(NativeEventHandler),
15 /// A dynamic expression value of any type (for component props).
16 Dynamic(String),
17 /// A CSS class reference created by the `class!` macro.
18 Css(CssClass),
19}