Crates.io | kwui-sys |
lib.rs | kwui-sys |
version | 0.1.1 |
source | src |
created_at | 2024-03-06 12:47:16.142667 |
updated_at | 2024-03-07 15:37:30.430997 |
description | sys-crate for kwui - A GUI library with JSX/CSS support |
homepage | |
repository | https://gitee.com/wanghoi/kwui-rs/ |
max_upload_size | |
id | 1164741 |
size | 16,930,445 |
使用 JSX、CSS 构建简单的桌面应用。
import { useState } from "Keact";
function HelloWorld(props, kids) {
let [n, setN] = useState(0);
return <button onclick={() => setN(n + 1)}>{`Click ${n} times`}</button>;
}
app.showDialog({
title: "Hello World",
root: <HelloWorld />,
stylesheet: css`
button { margin: 10px; padding: 4px; background-color: orange; }
button:hover { background-color: orangered; }
`
});
git clone https://gitee.com/wanghoi/kwui-rs.git
cargo run --example installer
cargo add kwui
已经有很多界面库了,为什么还要重复造轮子?
为了解决工作中的问题:
因为有趣: