mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-22 11:39:34 -06:00
18 lines
431 B
Zig
18 lines
431 B
Zig
pub fn Page(allocator: zx.Allocator) zx.Component {
|
|
var _zx = zx.initWithAllocator(allocator);
|
|
return _zx.zx(
|
|
.main,
|
|
.{
|
|
.allocator = allocator,
|
|
.children = &.{
|
|
_zx.lazy(Button, .{ .title = "Custom Button" }),
|
|
},
|
|
},
|
|
);
|
|
}
|
|
|
|
const zx = @import("zx");
|
|
const Button = @import("basic.zig").Button;
|
|
|
|
// const ClientComponent = @jsImport("basic.tsx");
|