summaryrefslogtreecommitdiff
path: root/examples/js/simple-bar/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/js/simple-bar/app.ts')
-rw-r--r--examples/js/simple-bar/app.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/js/simple-bar/app.ts b/examples/js/simple-bar/app.ts
new file mode 100644
index 0000000..05f043a
--- /dev/null
+++ b/examples/js/simple-bar/app.ts
@@ -0,0 +1,8 @@
+import { App } from "astal"
+import style from "./style.scss"
+import Bar from "./widget/Bar"
+
+App.start({
+ css: style,
+ main: () => App.get_monitors().map(Bar),
+})