| Crates.io | kwui |
| lib.rs | kwui |
| version | 0.2.2 |
| created_at | 2024-03-06 12:59:23.68197+00 |
| updated_at | 2024-07-03 06:55:28.441329+00 |
| description | A GUI library with JSX/CSS support |
| homepage | |
| repository | https://github.com/wanghoi/kwui-rs |
| max_upload_size | |
| id | 1164767 |
| size | 1,147,195 |
A cross-platform GUI library for Rust focused on simplicity and fast development of small tools. Inspired by sciter.
Rust and JavaScriptimport { 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; }
`
});