No description
Find a file
2025-01-23 11:52:58 +08:00
.cargo windows: Set the default stack size to 8M on Windows. (#228) 2024-09-09 13:51:10 +08:00
.github title_bar: Fix move window support for Linux. (#368) 2024-10-21 15:23:36 +08:00
assets tiles: Add Tiles (#435) 2024-12-16 20:33:14 +08:00
crates date_picker: Avoid focus back to DatePicker, when dismiss picker by clicked on Input. (#567) 2025-01-23 11:52:58 +08:00
script script: Fix install script on Ubuntu. (#366) 2024-10-18 23:14:55 +08:00
.gitignore dock: Add to support save left, right, bottom dock state. (#303) 2024-10-03 17:25:31 +08:00
Cargo.lock modal: Add confirm Modal with default Ok, Cancel buttons. (#558) 2025-01-20 17:42:05 +08:00
Cargo.toml tiles: Add Tiles (#435) 2024-12-16 20:33:14 +08:00
DEVELOPMENT tiles: Add Tiles (#435) 2024-12-16 20:33:14 +08:00
LICENSE-APACHE chore: Update LICENSE-APACHE file to add copyright info. 2024-12-13 11:46:00 +08:00
README.md Fix typo 2025-01-13 18:34:43 +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

  • Theming
  • TitleBar
  • Dock, Tiles
  • TextInput, TextArea, OtpInput
  • Button, Link
  • Label
  • Icon
  • Checkbox, Radio, Switch
  • Dropdown
  • Tabs
  • Notification
  • Tooltip
  • Popover
  • Resizable
  • Progress & Indicator
  • Slider
  • Skeleton
  • DatePicker, DateRangePicker, Calendar
  • ColorPicker
  • List
  • Table
  • Menu
  • Drawer
  • Modal
  • WebView
  • Accordion
  • Sidebar
  • Breadcrumb
  • Badge

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 = "export-platform-window" }
ui = { git = "https://github.com/longbridge/gpui-component.git" }

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