use crate::*;
/// Trait for types that can be converted into a reactive string value.
///
/// This allows both static strings and signals to be used interchangeably
/// in HTML attributes.
/// Trait for converting a value into a string for reactive attribute updates.
///
/// Used by the `html!` macro when an attribute value contains an `if` condition.
/// The result is stored in a `Signal<String>` that re-evaluates whenever any
/// signal changes — mirroring the DOM-level `DynamicNode` mechanism.
///
/// Implementations are provided for `String`, `&str`, `CssClass`, `bool`,
/// numeric types, and `Signal<T>` (which resolves the signal first).
/// Trait for types that can be converted into a callback attribute value.
///
/// This allows closures to be passed as custom component props.