mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-22 11:39:34 -06:00
24 lines
487 B
Zig
24 lines
487 B
Zig
pub fn Page(allocator: zx.Allocator) zx.Component {
|
|
var _zx = @import("zx").allocInit(allocator);
|
|
return _zx.cmp(
|
|
Button,
|
|
.{},
|
|
.{},
|
|
);
|
|
}
|
|
|
|
pub fn Button(allocator: zx.Allocator) zx.Component {
|
|
var _zx = @import("zx").allocInit(allocator);
|
|
return _zx.ele(
|
|
.button,
|
|
.{
|
|
.allocator = allocator,
|
|
.children = &.{
|
|
_zx.txt("Button"),
|
|
},
|
|
},
|
|
);
|
|
}
|
|
|
|
const zx = @import("zx");
|