gpui

Installation
SKILL.md

Navigation

Load the relevant reference file based on the task:

Topic File When to load
Actions & keybindings action.md actions!, bind_keys, on_action, key_context
Async & background tasks async.md cx.spawn, background_spawn, Task, async I/O
Context management context.md App, Window, Context<T>, AsyncApp
Custom elements (low-level) element.md Element trait, request_layout, prepaint, paint
Entity state entity.md Entity<T>, WeakEntity, state management
Events & subscriptions event.md cx.emit, cx.subscribe, cx.observe
Focus & keyboard nav focus-handle.md FocusHandle, track_focus, Tab navigation
Global state global.md Global trait, cx.set_global, app-wide config
Layout & styling layout-style.md div(), h_flex(), v_flex(), flexbox, overflow, positioning
ElementId element-id.md ElementId, .id(), uniqueness rules, stateful elements
Testing test.md #[gpui::test], TestAppContext, VisualTestContext

Extended References

Installs
70
GitHub Stars
11.9K
First Seen
May 30, 2026
gpui — longbridge/gpui-component