What problem does it solve?
This guide standardizes GPUI component development by codifying structure, trait implementations, naming conventions, and API patterns observed in gpui-component codebases, helping teams maintain consistency across projects.
Core Features & Use Cases
- Establishes a standardized component pattern including identity, configuration, content, and callbacks to align implementations across crates/ui.
- Documents trait implementations and naming conventions to prevent drift and facilitate code reviews.
- Use Case: When adding or reviewing a GPUI component, consult this guide to ensure alignment with existing patterns.
Quick Start
Follow these guidelines when scaffolding a new GPUI component, ensuring it derives IntoElement, follows the component documentation pattern, and adheres to theme usage and rendering patterns.