This commit is contained in:
2025-05-29 21:27:15 -04:00
parent 0de755cfc9
commit adf682a981
12 changed files with 59 additions and 83 deletions

View File

@@ -19,10 +19,10 @@ pub fn Button(props: ButtonProps) -> Element {
rsx! {
button {
onclick: move |event| {
event.prevent_default();
if let Some(h) = props.onclick {
h.call(event);
}
event.prevent_default();
if let Some(h) = props.onclick {
h.call(event);
}
},
"{props.text}"
}