Native Rust UI for GPUI
Material 3 Expressive for GPUI
GPUI Material provides Material components, semantic themes, and adaptive layouts for native Rust desktop applications built with GPUI.
Cargo.toml
gpui-material = "0.3.2"Rust
use gpui_material::Button;
Button::new("save", "Save")
.on_activate(|_, _| println!("Save requested"))Browser preview
This example runs the Rust Gallery with WebAssembly.
What you can build
Actions and forms
Compose buttons, selection controls, and text fields with application-owned values.
Feedback and overlays
Ask for confirmation, open supporting content, and show outcomes in a snackbar.
Adaptive navigation
Switch navigation with the available width and present list and detail views side by side when space allows.
How it fits together
gpui_materialComponents
Import Material controls and optional component families from the public facade.
gpui_material::themeTheme
Use semantic color, typography, shape, and motion tokens from a GPUI-independent crate.
gpui_material::foundationFoundation
Initialize Material windows and connect the theme to GPUI and Base services.