diff --git a/examples/demo.rs b/examples/demo.rs index 7fb8da9..ec5d395 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -80,12 +80,12 @@ fn SceneTree<'a>(cx: Scope, selected_entity: &'a UseState>) -> El } } node { + onclick: move |_| spawn_entity(), + onmouse_enter: enter, + onmouse_exit: exit, padding: "8", background_color: if spawn_entity_hovered { NEUTRAL_600 } else { NEUTRAL_800 }, text { - onclick: move |_| spawn_entity(), - onmouse_enter: enter, - onmouse_exit: exit, text: "Spawn Entity", text_size: "18" }