GPUI MaterialClose

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.

Get started Component catalog

v0.3.2Windows · macOS · Linux

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

Component catalog

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_material

Components

Import Material controls and optional component families from the public facade.

gpui_material::theme

Theme

Use semantic color, typography, shape, and motion tokens from a GPUI-independent crate.

gpui_material::foundation

Foundation

Initialize Material windows and connect the theme to GPUI and Base services.

Close