Skip to content

richardanaya/wui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

威 wui

A mobile-first UI library for web assembly. The goal is to support both web and native mobile with a standard set of components similar to React Native and other hybrid UI technology.

This project uses the view! macro

Hello World

[dependencies]
wui = "0.0.1"
use wui::*;

#[no_mangle]
pub fn main() -> () {
    let mut wui = globals::get::<Wui>().lock();
    wui.initialize();
    wui.render(view!{
        App {
            Text("Hello World!")
        }
    });
}

Web

<script src="https://cdn.jsdelivr.net/gh/richardanaya/js_ffi/js_ffi.js"></script>
<script>js_ffi.run("helloworld.wasm");</script>

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in wui by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

a mobile-first UI library for web assembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages