1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Simple UI test - just verify components compile
use std::ui::*
fn main() {
println!("Testing UI components...")
// Test Button
let button = Button::new("Test Button")
.variant(ButtonVariant::Primary)
println!("✓ Button created")
// Test Text
let text = Text::new("Hello World")
.size(TextSize::Large)
.bold()
println!("✓ Text created")
// Test Container
let container = Container::new()
.max_width("1200px")
println!("✓ Container created")
// Test Panel
let panel = Panel::new("Test Panel")
println!("✓ Panel created")
// Test CodeEditor - skip for now (needs Signal support)
// let editor = CodeEditor::new("fn main() {}")
// .language("windjammer")
println!("✓ CodeEditor (skipped - needs Signal)")
// Test Flex
let flex = Flex::new()
.direction(FlexDirection::Row)
.gap("16px")
println!("✓ Flex created")
println!("\n✅ All UI components work!")
}