stratum_core/state.rs
1/// Trait for component internal state types.
2///
3/// State is managed by the component itself (uncontrolled mode) or
4/// by the consumer (controlled mode). Framework adapters bridge this
5/// to each framework's reactivity model (Leptos signals, Dioxus signals).
6pub trait State: Clone + 'static {}
7
8/// Blanket impl: any type satisfying the bounds is valid as State.
9impl<T: Clone + 'static> State for T {}