kwui-sys

Crates.iokwui-sys
lib.rskwui-sys
version0.2.2
sourcesrc
created_at2024-03-06 12:47:16.142667
updated_at2024-07-03 06:53:14.52585
descriptionsys-crate for kwui - A GUI library with JSX/CSS support
homepage
repositoryhttps://github.com/wanghoi/kwui-rs/
max_upload_size
id1164741
size145,155
(WangHoi)

documentation

README

kwui

A cross-platform GUI library for Rust focused on simplicity and fast development of small tools. Inspired by sciter.

Features

  • Builtin JavaScript engine, and CSS parser
  • React Hooks alike functional components API
  • Easy interop between Rust and JavaScript
  • Cross-platform support (Windows, Android)

Documentation

FAQ

  1. Why another GUI library?
  • Porting server-side Rust code to client-side quickly, to explore and evaluate new technology.
  • Porting tools to mobile platforms quickly.

Example - Hello world

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; }
    `
});

Gallery

VoIP Test tool

image

Remote Desktop

image

Installer

image

Android examples

image image
Commit count: 84

cargo fmt