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