small refractor

This commit is contained in:
2024-11-25 23:45:32 +01:00
parent 6d86e8a42b
commit fd4f905f22
6 changed files with 45 additions and 95 deletions
+5 -2
View File
@@ -3,7 +3,10 @@ use crate::prelude::*;
pub fn examples() -> Element {
rsx! {
styling: Some(styling()),
button { class: "btn", "Hello, World!" }
button { class: "btn", "Click me!" }
text { "Welcome!" }
}
}
@@ -11,7 +14,7 @@ pub fn styling() -> Css {
css! {
.btn {
x: Center,
y: Auto,
y: Center,
color: Red,
}