1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
use crate::*;
/// Represents a single HTML node, which may be an element or text.
///
/// Parsed from the `html!` macro input before code generation.
pub
/// Represents the value side of an attribute.
///
/// Supports plain expressions, style objects, reactive/inline conditionals,
/// reactive/inline match expressions, and merged multi-class/multi-style attribute values.
pub
/// Represents a single value in a style property.
///
/// May be a static string literal, a dynamic expression, a reactive/inline conditional,
/// or a reactive/inline match expression.
pub
/// Determines how `attr_if_to_tokens` wraps each branch body during code generation.
///
/// - `Reactive`: Each branch body is wrapped with `IntoReactiveString::into_reactive_string()`,
/// ensuring all branches produce a `String`. Used for `class` and `style` attributes
/// where the `if` and implicit `else` branches may return different types
/// (e.g., `Css` vs `&str`).
/// - `Raw`: Branch bodies are emitted as-is without wrapping. Used for component props
/// where the branch types are already consistent or handled externally.
pub