longbridge/gpui-component▌
13 approved skills in this repository
gpui-test
Frontend
GPUI provides a comprehensive testing framework that allows you to test UI components, async operations, and distributed systems. Tests run on a single-threaded executor that provides deterministic execution and the ability to test complex async scenarios. GPUI tests use the #[gpui::test] attribute and work with TestAppContext for basic testing and VisualTestContext for window-dependent tests.
gpui-layout-and-style
Frontend
GPUI provides CSS-like styling with Rust type safety.
generate-component-documentation
Documents
Instructions \n When generating documentation for a new component: \n \n Follow existing patterns : Use the documentation styles found in the docs folder (examples: button.md , accordion.md , etc.) \n Reference implementations : Base the documentation on the same-named story implementation in crates/story/src/stories \n API references : Use markdown code blocks with links to docs.rs for component API references when applicable \n \n Examples \n The generated documentation should include: \n \n C
new-component
Productivity
When creating new GPUI components:
gpui-element
Frontend
Use the low-level Element trait when:
gpui-global
Frontend
Global state in GPUI provides app-wide shared data accessible from any context.
gpui-style-guide
Frontend
Code style guide derived from gpui-component implementation patterns.
gpui-entity
Frontend
An Entity<T> is a handle to state of type T, providing safe access and updates.
gpui-context
Frontend
GPUI uses different context types for different scenarios:
gpui-focus-handle
Frontend
GPUI's focus system enables keyboard navigation and focus management.
gpui-async
Frontend
GPUI provides integrated async runtime for foreground UI updates and background computation.
gpui-event
Frontend
GPUI provides event system for component coordination:
gpui-action
Frontend
Actions provide declarative keyboard-driven UI interactions in GPUI.