small changes

This commit is contained in:
2024-11-20 21:11:28 +01:00
parent 824738fd0e
commit a75543ef60
3 changed files with 14 additions and 85 deletions
+2 -2
View File
@@ -6,13 +6,13 @@ fn main() {
fn app() -> Element {
rsx! { styling: Some(styles()),
button { class: "btn", "This is a button!" }
button { class: "btn", id: "test", "This is a button!" }
}
}
fn styles() -> Css {
css! {
.btn::clicked {
.btn: clicked {
color: Blue
}
}