🆕 Add simple-ui directory and repository link to README
This commit is contained in:
BIN
simple-ui/.perry-cache/objects/host/71f8cf461e1e75d4.o
Normal file
BIN
simple-ui/.perry-cache/objects/host/71f8cf461e1e75d4.o
Normal file
Binary file not shown.
6
simple-ui/README.md
Normal file
6
simple-ui/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
```shell
|
||||
perry compile main.ts -o main
|
||||
```
|
||||
|
||||
11
simple-ui/main.ts
Normal file
11
simple-ui/main.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import{ App, Text, VStack } from "perry/ui";
|
||||
|
||||
App({
|
||||
title:"My App",
|
||||
width:400,
|
||||
height:300,
|
||||
body:VStack(16,[
|
||||
Text("Hello from Perry!"),
|
||||
]),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user