expanded components

This commit is contained in:
2025-01-18 18:13:45 +01:00
parent 9ecf8de501
commit ab5554abce
5 changed files with 58 additions and 27 deletions
+7 -4
View File
@@ -1,7 +1,7 @@
use osui::prelude::*;
fn main() -> osui::Result<()> {
let mut con = console::init()?;
let mut con = console::init(false)?;
con.run(app())?;
@@ -10,9 +10,12 @@ fn main() -> osui::Result<()> {
pub fn app() -> Element {
rsx! {
"X" (x-Center)
"Y" (y-Center)
test {} ()
}
}
"Hello, World" (x-Center, y-Center)
pub fn test() -> Element {
rsx! {
"ABC" (x-center y-center)
}
}