# microsoft-webui-wasm
WebAssembly bindings for the [WebUI](https://github.com/microsoft/webui) framework, built with `wasm-bindgen`.
## Overview
`microsoft-webui-wasm` can be built as three browser bundles:
| `handler` | `webui_wasm_handler.js` | `render`, `render_partial`, `protocol_tokens`, `render_component_templates` |
| `parser` | `webui_wasm_parser.js` | `build_protocol` |
| `all` | `webui_wasm_all.js` | Parser and handler exports |
The default feature is `all`, which powers the online playground. Consumers that only need to render prebuilt protobuf protocol bytes should use the handler bundle to avoid shipping parser code.
## Building
```bash
cargo xtask build-wasm
```
This writes the three generated bundles under `docs/.webui-press/public/wasm/`.
## Documentation
See the [WebUI repository](https://github.com/microsoft/webui) for full usage guides and examples.
## License
MIT - Copyright (c) Microsoft Corporation.