<img width="470" alt="image" src="https://github.com/user-attachments/assets/0255d03d-1e67-49c7-ad3f-5507777d82a3"> <img width="449" alt="image" src="https://github.com/user-attachments/assets/ab7dd027-8e81-408b-8d02-69cc27fcb801"> <img width="255" alt="image" src="https://github.com/user-attachments/assets/e789cceb-8aa6-432e-abb0-ba7a14b793bd">
96 lines
2.1 KiB
Markdown
96 lines
2.1 KiB
Markdown
# 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.
|
|
|
|
A UI components for building desktop application by using [GPUI](https://gpui.rs).
|
|
|
|
## Features
|
|
|
|
- [x] Theming
|
|
- [x] TitleBar
|
|
- [ ] TextInput
|
|
- [x] Ctrl+a, e to move cursor to start/end
|
|
- [x] Copy, Cut, Paste by keyboard
|
|
- [x] Selection by mouse, drag to select text
|
|
- [x] Cursor blinking
|
|
- [x] Input icon
|
|
- [ ] Textarea
|
|
- [ ] ContextMenu to let user copy, cut, paste
|
|
- [x] OtpInput
|
|
- [x] Button
|
|
- [x] Button with Icon
|
|
- [x] ButtonGroup
|
|
- [x] IconButton
|
|
- [x] Glost / Outline Button
|
|
- [x] Loading
|
|
- [x] Link
|
|
- [x] Label
|
|
- [x] Icon
|
|
- [x] Checkbox
|
|
- [x] Radio
|
|
- [x] Switch
|
|
- [x] Dropdown
|
|
- [x] Tabs
|
|
- [x] Notification
|
|
- [x] Tooltip
|
|
- [x] Popover
|
|
- [x] Dockpanel
|
|
- [x] Resizable
|
|
- [x] Progress & Indicator
|
|
- [x] Slider
|
|
- [x] Skeleton
|
|
- [ ] DatePicker
|
|
- [x] DatePicker
|
|
- [x] DateRangePicker
|
|
- [x] Calendar
|
|
- [ ] TimePicker
|
|
- [x] ColorPicker
|
|
- [x] List
|
|
- [x] A complex List example.
|
|
- [x] Table
|
|
- [x] row, column selection
|
|
- [x] Left, Right / Up, Down to selection column or row.
|
|
- [x] Horizontal scroll
|
|
- [x] Vertical scroll
|
|
- [x] Column resizing
|
|
- [x] Column ordering
|
|
- [x] Column sorting
|
|
- [x] Menu
|
|
- [x] Popup Menu
|
|
- [x] Context Menu
|
|
- [x] Drawer
|
|
- [x] Modal
|
|
- [x] Notification
|
|
- [x] WebView
|
|
- [x] Accordion
|
|
- [x] Sidebar
|
|
|
|
## Showcase
|
|
|
|
Here is an application that is built by using GPUI Component.
|
|
|
|
> This application is still under development, not published yet.
|
|
|
|

|
|
|
|

|
|
|
|
## Demo
|
|
|
|
If you want to see the demo, here is a some demo applications.
|
|
|
|
- [gpui-app-windows.zip](https://github.com/user-attachments/files/17396296/gpui-app-windows.zip) - Updated at 2024/10/16
|
|
|
|
## How to build
|
|
|
|
```bash
|
|
cargo run
|
|
```
|
|
|
|
## License
|
|
|
|
Apache-2.0
|
|
|
|
- UI design based on [shadcn/ui](https://ui.shadcn.com).
|
|
- Icon from [Lucide](https://lucide.dev).
|