style update

This commit is contained in:
2024-11-18 18:55:29 +01:00
parent 15fb611870
commit f3a376d418
7 changed files with 342 additions and 121 deletions
+10 -2
View File
@@ -5,7 +5,15 @@ fn main() {
}
fn app() -> Element {
rsx! {
button { "This is a button!" }
rsx! { styling: Some(styles()),
button { class: "btn", "This is a button!" }
}
}
fn styles() -> Css {
css! {
.btn::click {
color: Blue
}
}
}