{"id":22757785,"url":"https://github.com/longbridge/gpui-component","last_synced_at":"2025-04-10T06:12:34.058Z","repository":{"id":244244564,"uuid":"814684486","full_name":"longbridge/gpui-component","owner":"longbridge","description":"UI components for building fantastic desktop application by using GPUI.","archived":false,"fork":false,"pushed_at":"2025-04-02T13:56:36.000Z","size":2787,"stargazers_count":654,"open_issues_count":18,"forks_count":57,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-03T03:08:58.084Z","etag":null,"topics":["gpui","macos","shadcn","ui","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/longbridge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T13:45:39.000Z","updated_at":"2025-04-02T14:17:32.000Z","dependencies_parsed_at":"2024-07-22T04:24:58.113Z","dependency_job_id":"137f8d17-dbd0-4cf2-9587-fdf6a645fe35","html_url":"https://github.com/longbridge/gpui-component","commit_stats":{"total_commits":467,"total_committers":11,"mean_commits":42.45454545454545,"dds":"0.23982869379014993","last_synced_commit":"8b23193f8f9904355ccebe15fd3c0bb4137df162"},"previous_names":["huacnlee/gpui-app","longbridgeapp/gpui-component","longbridge/gpui-component"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Fgpui-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Fgpui-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Fgpui-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Fgpui-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/longbridge","download_url":"https://codeload.github.com/longbridge/gpui-component/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpui","macos","shadcn","ui","windows"],"created_at":"2024-12-11T08:01:08.815Z","updated_at":"2025-04-10T06:12:34.023Z","avatar_url":"https://github.com/longbridge.png","language":"Rust","funding_links":[],"categories":["Rust","Libraries","前端开发框架及项目","未分类"],"sub_categories":["GUI","前端项目_其他","Demos \u0026 Examples"],"readme":"# GPUI Component\n\n\u003e This is still an early stage of development, we may change API frequently.\n\u003e But the features is ok to use, you must keep tracking our changes.\n\nUI components for building fantastic desktop application by using [GPUI](https://gpui.rs).\n\n## Features\n\n- Accordion\n- Alert\n- Badge\n- Breadcrumb\n- Button, Link\n- Checkbox, Radio, Switch\n- ColorPicker\n- DatePicker, DateRangePicker, Calendar\n- Dock, Tiles\n- Drawer\n- Dropdown\n- Icon\n- Label\n- List\n- Menu\n- Modal\n- Notification\n- Popover\n- Progress \u0026 Indicator\n- Resizable\n- Sidebar\n- Skeleton\n- Slider\n- Table\n- Tabs\n- TextInput, TextArea, OtpInput\n- TextView (Markdown, Simple HTML) to native rendering, syntax highlighting.\n- Theming\n- TitleBar\n- Toggle, ToggleGroup\n- Tooltip\n- WebView\n\n## Showcase\n\nHere is the first application: [Longbridge](https://longbridge.com) that is built by using GPUI Component.\n\n\u003e It still under development, not published yet.\n\n\u003cimg width=\"2017\" alt=\"SCR-20250107-kagq\" src=\"https://github.com/user-attachments/assets/55f9e012-34ce-44d1-908f-768f8d2c8abf\" /\u003e\n\u003cimg width=\"2017\" alt=\"SCR-20250107-kaky\" src=\"https://github.com/user-attachments/assets/a56995ca-1c54-43bb-9a27-bc9023a169dd\" /\u003e\n\u003cimg width=\"2017\" alt=\"SCR-20250107-kapd\" src=\"https://github.com/user-attachments/assets/ecdfe8cd-f8d8-4df4-bafe-ab2d8517f8db\" /\u003e\n\u003cimg width=\"2017\" alt=\"SCR-20250107-kfvk\" src=\"https://github.com/user-attachments/assets/ccc4f25f-16c2-4140-a2ad-d194aadaa544\" /\u003e\n\nWe 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.\n\n## Usage\n\nGPUI and GPUI Component still in development, so we need add dependency by git.\n\nAnd GPUI Component depends on `gpui` by special version (It keep updated to upstream) for including WebView support.\n\n```toml\ngpui = { git = \"https://github.com/huacnlee/zed.git\", branch = \"webview\" }\ngpui-component = { git = \"https://github.com/longbridge/gpui-component.git\" }\n```\n\n### WebView\n\nGPUI Component have `WebView` element based on [Wry](https://github.com/tauri-apps/wry), this is an optional feature, you can enable it by feature flag.\n\n```toml\ngpui-component = { git = \"https://github.com/longbridge/gpui-component.git\", features = [\"webview\"] }\n```\n\nMore usage can be found in [story](https://github.com/longbridge/gpui-component/tree/main/crates/story) directory.\n\n### Icons\n\nGPUI Component have `Icon` element, but it does not include SVG files by default.\n\nThe example is using [Lucide](https://lucide.dev) icons, but you can use any icons you like, just named the svg files like [IconName](https://github.com/longbridge/gpui-component/blob/main/crates/ui/src/icon.rs#L86) defined the path name.\nYou can add icons that you need in your project.\n\n## Demo\n\nIf you want to see the demo, here is a some demo applications.\n\n- [gpui-app-windows.zip](https://github.com/user-attachments/files/17396296/gpui-app-windows.zip) - Updated at 2024/10/16\n\n## Development\n\n```bash\ncargo run\n```\n\nMore examples can be found in `examples` directory.\n\nCheckout [DEVELOPMENT](DEVELOPMENT) to see more details.\n\n## License\n\nApache-2.0\n\n- UI design based on [shadcn/ui](https://ui.shadcn.com).\n- Icon from [Lucide](https://lucide.dev).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flongbridge%2Fgpui-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flongbridge%2Fgpui-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flongbridge%2Fgpui-component/lists"}