From 96757838fc1655ed9ad3118ae915c8cdf091fe35 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sat, 7 Sep 2024 20:05:52 +0000 Subject: add: js bar example --- examples/js/simple-bar/app.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/js/simple-bar/app.ts (limited to 'examples/js/simple-bar/app.ts') 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), +}) -- cgit v1.2.3