Flex components

This commit is contained in:
2026-02-01 18:20:20 +01:00
parent 76984187a0
commit 25bebcbb81
6 changed files with 85 additions and 9 deletions
+6 -1
View File
@@ -10,7 +10,12 @@ fn App(cx: &Arc<Context>) -> View {
rsx! {
// redraw is important because the effects won't be applied
impl size_auto, center, redraw
Card { content: "Hello World".to_string() }
FlexRow {
impl size_auto, redraw
Card { content: "One".to_string() }
impl size_auto, redraw
Card { content: "Two".to_string() }
}
}
.view(&cx)
}