None
DE
This Week at Zed Industries: #16
[]
Zed Industries - Blog
pub struct HoverStyle < S > { default : S , hovered : S , } pub struct Hover < C : StylableComponent > { child : C , style : HoverStyle < C :: Style > } impl < C : StylableComponent > Hover < C > { fn new ( child : C , style : HoverStyle < C :: Style >) -> Self { Self { child , style , } } } impl < C : StylableComponent > Component for Hover < C > { fn render ( self ) -> Element { if app_context :: is_hovered () { self .child.