No description
Find a file
2025-04-15 14:36:02 +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 menu: Add external link icon to link menu item. (#734) 2025-03-24 22:30:29 +08:00
crates sidebar: Better active menu background (#793) 2025-04-15 14:36:02 +08:00
script script: Fix install script on Ubuntu. (#366) 2024-10-18 23:14:55 +08:00
.gitignore chore: Upgrade GPUI 3 (#587) 2025-01-27 03:58:48 +08:00
Cargo.lock build(deps): bump gpui from 236d6f9 to 04c0a54 (#790) 2025-04-14 21:59:31 +08:00
Cargo.toml svg_img: Use system fonts to support CJK characters (#750) 2025-03-27 14:44:04 +08:00
DEVELOPMENT doc: Update Contributing Guide. (#739) 2025-03-26 21:46:42 +08:00
LICENSE-APACHE Update year of LICENSE-APACHE 2025-02-17 14:48:49 +08:00
README.md alert: Add to support styled. (#736) 2025-03-25 15:04:28 +08:00
rust-toolchain.toml chore: Update rust-toolchain.toml to use Rust 1.86 2025-04-15 13:41:14 +08:00

GPUI Component

This is still an early stage of development, we may change API frequently. But the features is ok to use, you must keep tracking our changes.

UI components for building fantastic desktop application by using GPUI.

Features

  • Accordion
  • Alert
  • Badge
  • Breadcrumb
  • Button, Link
  • Checkbox, Radio, Switch
  • ColorPicker
  • DatePicker, DateRangePicker, Calendar
  • Dock, Tiles
  • Drawer
  • Dropdown
  • Icon
  • Label
  • List
  • Menu
  • Modal
  • Notification
  • Popover
  • Progress & Indicator
  • Resizable
  • Sidebar
  • Skeleton
  • Slider
  • Table
  • Tabs
  • TextInput, TextArea, OtpInput
  • TextView (Markdown, Simple HTML) to native rendering, syntax highlighting.
  • Theming
  • TitleBar
  • Toggle, ToggleGroup
  • Tooltip
  • WebView

Showcase

Here is the first application: Longbridge that is built by using GPUI Component.

It still under development, not published yet.

SCR-20250107-kagq SCR-20250107-kaky SCR-20250107-kapd SCR-20250107-kfvk

We build multi-themes support in application, this feature is not including in GPUI Component. It is based on Theme feature, so it easy to do.

Usage

GPUI and GPUI Component still in development, so we need add dependency by git.

And GPUI Component depends on gpui by special version (It keep updated to upstream) for including WebView support.

gpui = { git = "https://github.com/huacnlee/zed.git", branch = "webview" }
gpui-component = { git = "https://github.com/longbridge/gpui-component.git" }

WebView

GPUI Component have WebView element based on Wry, this is an optional feature, you can enable it by feature flag.

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

More usage can be found in story directory.

Icons

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

The example is using Lucide icons, but you can use any icons you like, just named the svg files like IconName defined the path name. You can add icons that you need in your project.

Demo

If you want to see the demo, here is a some demo applications.

Development

cargo run

More examples can be found in examples directory.

Checkout DEVELOPMENT to see more details.

License

Apache-2.0