No description
Find a file
2025-06-17 13:38:24 +08:00
.cargo windows: Set the default stack size to 8M on Windows. (#228) 2024-09-09 13:51:10 +08:00
.github chore: Add Windows CI (#789) 2025-04-14 20:46:32 +08:00
assets inspector: Add Inspector. (#897) 2025-05-26 16:44:11 +08:00
crates dock: Bind actions only when the tab panel is not collapsed (#964) 2025-06-17 13:38:24 +08:00
script linux: Add libx11-xcb-dev to install script and build error. (#795) 2025-04-16 09:00:31 +08:00
.gitignore gallery: Redesign the gallery. (#797) 2025-04-17 17:12:48 +08:00
Cargo.lock chore: Update GPUI and fix uniform_list API changes. (#945) 2025-06-11 17:48:04 +08:00
Cargo.toml chart: Introduce chart (#878) 2025-06-04 19:22:11 +08:00
DEVELOPMENT.md Rename DEVELOPMENT to DEVELOPMENT.md (#894) 2025-05-26 13:35:33 +08:00
flake.lock chore: Add Nix/Flake development environment. (#837) 2025-05-08 21:54:58 +08:00
flake.nix chore: Add Nix/Flake development environment. (#837) 2025-05-08 21:54:58 +08:00
LICENSE-APACHE Update year of LICENSE-APACHE 2025-02-17 14:48:49 +08:00
README.md dock: Use disabled instead of hiding the zoom menu (#949) 2025-06-12 12:10:03 +08:00

GPUI Component

UI components for building fantastic desktop applications using GPUI.

Features

  • Richness: 40+ cross-platform desktop UI components.
  • Native: Inspired by macOS and Windows controls, combined with shadcn/ui design for a modern experience.
  • Ease of Use: Stateless RenderOnce components, simple and user-friendly.
  • Customizable: Built-in Theme and ThemeColor, supporting multi-theme and variable-based configurations.
  • Versatile: Supports sizes like xs, sm, md, and lg.
  • Flexible Layout: Dock layout for panel arrangements, resizing, and freeform (Tiles) layouts.
  • High Performance: Virtualized Table and List components for smooth large-data rendering.
  • Content Rendering: Native support for Markdown and simple HTML.
  • Charting: Built-in charts for visualization your data.
  • Code Highlighting: Code Editor and Syntax highlighting.

Showcase

Here is the first application: Longbridge Pro, built using GPUI Component.

Image

We built multi-theme support in the application. This feature is not included in GPUI Component itself, but is based on the Theme feature, so it's easy to implement.

Usage

GPUI and GPUI Component are still in development, so you need to add dependencies by git.

gpui = { git = "https://github.com/zed-industries/zed.git" }
gpui-component = { git = "https://github.com/longbridge/gpui-component.git" }

WebView

Still early and experimental; there are a lot of limitations.

GPUI Component has a WebView element based on Wry. This is an optional feature, which you can enable with a feature flag.

gpui-component = { git = "https://github.com/longbridge/gpui-component.git", features = ["webview"] }

More usage examples can be found in the story directory.

Icons

GPUI Component has an Icon element, but it does not include SVG files by default.

The example uses Lucide icons, but you can use any icons you like. Just name the SVG files as defined in IconName. You can add any icons you need to your project.

Development

We have a gallery of applications built with GPUI Component.

cargo run

More examples can be found in the examples directory. You can run them with cargo run --example <example_name>.

Check out DEVELOPMENT.md for more details.

License

Apache-2.0