Declarative UI
for C++20
HuxerUI is an open-source framework for desktop, mobile, and Web. Write views as C++ functions and share application code across platforms.
[[huxerui::composable]]
View Counter() {
auto count = UseState(0);
return Column {
Text::Format("Count: {}", count),
Button("Increment").OnClick([count] {
count += 1;
}),
}.With(Padding(24.0F), Spacing(12.0F));
}UI Gallery
Try the controls, layouts, and themes in a C++ application running in your browser.


Official libraries
Add a library to an existing HuxerUI project and use it through its own C++ API.
- Editors and documents
- Code and rich-text editors, Markdown and PDF rendering, and embedded web content.
- Data and services
- SQLite persistence, virtualized tables, interactive charts, and QR codes.
- Media and devices
- Audio and video playback, camera and microphone capture, and map integration.
Framework architecture
A shared runtime drives the interface. Each backend connects it to the host's windowing, input, text, and graphics APIs.
- Composition
- Compose views with typed modifiers and events. State changes recompose the scopes that read them.
- Retained runtime
- The runtime keeps mounted nodes and coordinates layout, input, animation, and drawing.
- Platform integration
- Use typed APIs to embed platform views, access services, or present frames from a texture producer.
Build your first app
Install the SDK and Web prerequisites, then create and run a starter project.
huxerui create app hello --platform web
cd hello
huxerui run web