diff options
author | Aylur <[email protected]> | 2024-09-07 20:05:52 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-07 20:05:52 +0000 |
commit | 96757838fc1655ed9ad3118ae915c8cdf091fe35 (patch) | |
tree | a9cc9c8e19a145d039c9f9f188599ca7fe72fdce /examples/js/simple-bar/app.ts | |
parent | 639e92a2d35915aab8f7178be3fec7d099b16ee3 (diff) |
add: js bar example
Diffstat (limited to 'examples/js/simple-bar/app.ts')
-rw-r--r-- | examples/js/simple-bar/app.ts | 8 |
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), +}) |