small refractor
This commit is contained in:
+5
-2
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user